
array_syntax
¶PHP arrays should be declared using the configured syntax.
syntax
¶Whether to use the long
or short
array syntax.
Allowed values: 'long'
and 'short'
Default value: 'short'
With configuration: ['syntax' => 'long']
.
--- Original
+++ New
<?php
-[1,2];
+array(1,2);
The rule is part of the following rule sets: