php-8.0.30-src/Zend/tests/grammar/regression_012.phpt

13 lines
222 B
PHP

--TEST--
Testing for regression on const list syntax and arrays
--FILE--
<?php
class A {
const A = [1, FOREACH];
}
?>
--EXPECTF--
Parse error: syntax error, unexpected token "foreach", expecting "]" in %s on line %d