Closures only have {closure}() as method name

Prefixing a class name does not make sense as they may be rebound to another scope, where this will be confusing
This commit is contained in:
Bob Weinand committed 2015-07-14 02:52:09 +02:00
1 parent 1003d01f3a
commit bce9368dfb
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ $o->func();
?>
===DONE===
--EXPECTF--
Test::{closure}()
{closure}()
Fatal error: Uncaught Error: Call to private method Test::func() from context '' in %sclosure_033.php:%d
Stack trace: