From bce9368dfbd2b11258601604a44e2145c9bb2d86 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Tue, 14 Jul 2015 02:52:09 +0200 Subject: [PATCH] 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 --- Zend/tests/closure_033.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/tests/closure_033.phpt b/Zend/tests/closure_033.phpt index d92716aacc..c83a53898d 100644 --- a/Zend/tests/closure_033.phpt +++ b/Zend/tests/closure_033.phpt @@ -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: -- 2.40.0