xref: /PHP-8.4/Zend/tests/arrow_functions/002.phpt (revision 36935e42)
1--TEST--
2Arrow functions implicit use must be throwing notices only upon actual use
3--FILE--
4<?php
5
6$b = 1;
7
8var_dump((fn() => $b + $c)());
9
10?>
11--EXPECTF--
12Warning: Undefined variable $c in %s on line %d
13int(1)
14