xref: /PHP-8.3/Zend/tests/gh11320_3.phpt (revision 8ed66b43)
1--TEST--
2GH-11320: list() must not appear as a standalone array element
3--FILE--
4<?php
5[list($a)];
6?>
7--EXPECTF--
8Fatal error: Cannot use list() as standalone expression in %s on line %d
9