2015-11-09 17:46 GMT+01:00 Leigh <lei...@gmail.com>: > > On 9 November 2015 at 16:42, Niklas Keller <m...@kelunik.com> wrote: > >> >> Having the path info is quite useful for debugging purposes. >> >> Regards, Niklas >> > > It is, but it will always still be available from > ReflectionClass::getFileName() >
But most implementations just use something like: $type = is_object($x) ? get_class($x) : gettype($x); This results in non-useful debugging info when the path gets stripped.