diff options
Diffstat (limited to 'Zend/tests/arrow_functions/002.phpt')
-rw-r--r-- | Zend/tests/arrow_functions/002.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/arrow_functions/002.phpt b/Zend/tests/arrow_functions/002.phpt new file mode 100644 index 0000000000..52c8020c19 --- /dev/null +++ b/Zend/tests/arrow_functions/002.phpt @@ -0,0 +1,13 @@ +--TEST-- +Arrow functions implicit use must be throwing notices only upon actual use +--FILE-- +<?php + +$b = 1; + +var_dump((fn() => $b + $c)()); + +?> +--EXPECTF-- +Notice: Undefined variable: c in %s on line %d +int(1) |