xref: /PHP-8.1/Zend/tests/list_empty_error.phpt (revision e9068cef)
1--TEST--
2Empty list() assignments are not allowed
3--FILE--
4<?php
5
6list(,,,,,,,,,,) = [];
7
8?>
9--EXPECTF--
10Fatal error: Cannot use empty list in %s on line %d
11