xref: /PHP-7.4/Zend/tests/errmsg_040.phpt (revision 782352c5)
1--TEST--
2errmsg: arrays are not allowed in class constants
3--FILE--
4<?php
5
6class test {
7	const TEST = array(1,2,3);
8}
9var_dump(test::TEST);
10echo "Done\n";
11?>
12--EXPECT--
13array(3) {
14  [0]=>
15  int(1)
16  [1]=>
17  int(2)
18  [2]=>
19  int(3)
20}
21Done
22