--TEST--
array unpacking with undefined variable
--FILE--
<?php

var_dump([...$arr]);

?>
--EXPECTF--
Warning: Undefined variable $arr in %s on line %d

Fatal error: Uncaught Error: Only arrays and Traversables can be unpacked, null given in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d
