xref: /PHP-8.2/Zend/tests/list_014.phpt (revision ab304579)
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