php-src/Zend/tests/array_unpack/in_destructuring.phpt
2019-05-13 14:42:43 +02:00

10 lines
212 B
PHP

--TEST--
Spread operator is not supported in destructuring assignments
--FILE--
<?php
[$head, ...$tail] = [1, 2, 3];
?>
--EXPECTF--
Fatal error: Spread operator is not supported in assignments in %s on line %d