mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
13 lines
211 B
PHP
13 lines
211 B
PHP
--TEST--
|
|
Arrow functions implicit use must be throwing notices only upon actual use
|
|
--FILE--
|
|
<?php
|
|
|
|
$b = 1;
|
|
|
|
var_dump((fn() => $b + $c)());
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable $c in %s on line %d
|
|
int(1)
|