1--TEST-- 2ReflectionFunction::getShortName() returns the full name for closures defined in namespaces. 3--FILE-- 4<?php 5namespace Foo; 6 7class Bar { 8 public function baz() { 9 return function () { 10 11 }; 12 } 13} 14 15$c = (new Bar())->baz(); 16$r = new \ReflectionFunction($c); 17var_dump($r->getShortName()); 18?> 19--EXPECT-- 20string(26) "{closure:Foo\Bar::baz():6}" 21