1
0
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:
Bob Weinand
2015-07-14 02:52:09 +02:00
parent 1003d01f3a
commit bce9368dfb

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: