If you call getName() on an anonymous function you'll get "{closure}".
(PHP 5 >= 5.2.0, PHP 7)
ReflectionFunctionAbstract::getName — Gets function name
Get the name of the function.
Ta funkcja jest obecnie nieudokumentowana, dostępna jest jedynie lista jej argumentów.
Ta funkcja nie posiada parametrów.
The name of the function.