mirror of
https://github.com/elyby/php-code-style.git
synced 2024-12-01 19:21:48 +05:30
Adjust rules after production projects checks
This commit is contained in:
parent
f2d1b6164e
commit
2db4af0180
@ -72,7 +72,7 @@ class Rules {
|
|||||||
'property' => 'one',
|
'property' => 'one',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'no_null_property_initialization' => true, // TODO: check against yii2 default overrides
|
'no_null_property_initialization' => true,
|
||||||
'no_php4_constructor' => true,
|
'no_php4_constructor' => true,
|
||||||
'no_unneeded_final_method' => true,
|
'no_unneeded_final_method' => true,
|
||||||
'ordered_class_elements' => true,
|
'ordered_class_elements' => true,
|
||||||
@ -98,7 +98,7 @@ class Rules {
|
|||||||
'trailing_comma_in_multiline' => [
|
'trailing_comma_in_multiline' => [
|
||||||
'elements' => PHP_MAJOR_VERSION >= 8
|
'elements' => PHP_MAJOR_VERSION >= 8
|
||||||
? ['arrays', 'arguments', 'parameters', 'match']
|
? ['arrays', 'arguments', 'parameters', 'match']
|
||||||
: ['arrays', 'parameters'],
|
: ['arrays', 'arguments'],
|
||||||
],
|
],
|
||||||
'yoda_style' => [
|
'yoda_style' => [
|
||||||
'equal' => false,
|
'equal' => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user