> And if I remember correctly, that's exactly why get_debug_type() was 
> introduced: no BC break, and it does the job.
> 
> You should simply use get_debug_type() everywhere and never use 
> gettype() ever again. This is the most sensible move you can make, it 
> really is the function you should use in most case.

Ah! I've never heard of this function before in my last 25 years of
PHP ^^

I'll open a PR to change the doc about gettype to make it clearer in
the gettype page that get_debug_type should be used in priority.

Thanks.

Reply via email to