xref: /php-src/Zend/tests/list/list_014.phpt (revision 275f63e7)
1--TEST--
2Cannot destructure using array(), even if nested
3--FILE--
4<?php
5
6[array($a)] = [array(42)];
7var_dump($a);
8
9?>
10--EXPECTF--
11Fatal error: Cannot assign to array(), use [] instead in %s on line %d
12