On Nov 16, 2021, at 14:02, Kamil Tekiela <tekiela...@gmail.com> wrote: > When used with a name of a function, it will give you the name of that > function as a string.
Again, this is not true. Names of classes and functions are not resolved the same way. Consider: namespace Some\Namespace; use function Other\func; print func::class; This prints "Some\Namespace\func", but calling func() in the same context will refer either to Other\func() or \func(), depending on which is defined -- never to Some\Namespace\func(). -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php