I have a simple associative array declared like the following:
static private $foo = [
16 => 'xyz',
7 => 'x',
8 => 'y',
9 => 'xy'
];
When I run a syntax check on this declaration, I get the following:
Parse error: syntax error, unexpected '16' (T_LNUMBER), expecting ']
What am I doing wrong here?


private static $fooprivate static-static privatemake no difference to the parser ;-) Since this is obviously part of a class definition can you please post a complete script? Try to create the smallest yet complete script possible that exhibits the behaviour you've described.