mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 09:17:29 +00:00
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:
1 parent
1003d01f3a
commit
bce9368dfb
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user