blob: 7b77825f39497c6b9d51dc3ee39bee89399dd16a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--TEST--
Cannot destructure using array(), even if nested
--FILE--
<?php
[array($a)] = [array(42)];
var_dump($a);
?>
--EXPECTF--
Fatal error: Cannot assign to array(), use [] instead in %s on line %d
|