10); /* testArrayWithComment */ $var = Array /*comment*/ (1 => 10); /* testNestingArray */ $var = array( /* testNestedArray */ array( 'key' => 'value', /* testClosureReturnType */ 'closure' => function($a) use($global) : Array {}, ), ); /* testFunctionDeclarationParamType */ function foo(array $a) {} /* testFunctionDeclarationReturnType */ function foo($a) : int|array|null {} class Bar { /* testClassConst */ const ARRAY = []; /* testClassMethod */ public function array() {} }