We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a9ee8b commit 86ea9e8Copy full SHA for 86ea9e8
Zend/tests/arrow_functions/001.phpt
@@ -47,11 +47,13 @@ $var = 11;
47
$foo = fn() => ++$var;
48
var_dump($var);
49
var_dump($foo());
50
+var_dump($var);
51
52
$var = 13;
53
$foo = fn() => { return ++$var; };
54
55
56
57
58
// Nested arrow functions
59
$var = 14;
@@ -81,8 +83,10 @@ int(9)
81
83
int(10)
82
84
int(11)
85
int(12)
86
+int(11)
87
int(13)
88
int(14)
89
+int(13)
90
91
int(15)
92
int(16)
0 commit comments