]> granicus.if.org Git - php/commitdiff
Closures only have {closure}() as method name
authorBob Weinand <bobwei9@hotmail.com>
Tue, 14 Jul 2015 00:52:09 +0000 (02:52 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Tue, 14 Jul 2015 00:52:09 +0000 (02:52 +0200)
Prefixing a class name does not make sense as they may be rebound to another scope, where this will be confusing

Zend/tests/closure_033.phpt

index d92716aaccec9d10c6755c6e31722b8bb095031b..c83a53898d4fcd051cfc112033056601e8efa444 100644 (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: