1 Arrays
LogMANOriginal edited this page 2019-11-01 18:03:53 +01:00

Always use the long array syntax

Arrays should be initialized using the long array syntax.

Example

Bad

$data = [ 'hello' => 'world' ];

Good

$data = array('hello' => 'world');

Reference: Generic.Arrays.DisallowShortArraySyntax