mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01: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:
@@ -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