File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 209
209
210
210
// Constructor having promoted properties must have them in separate lines
211
211
PhpCsFixerCustomFixers \Fixer \MultilinePromotedPropertiesFixer::name () => true ,
212
+
213
+ // Use the Elvis operator ?: where possible.
214
+ 'ternary_to_elvis_operator ' => true ,
215
+
216
+ // Adds or removes ? before single type declarations or |null at the end of union types when parameters have a default null value.
217
+ 'nullable_type_declaration_for_default_null_value ' => true ,
212
218
];
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ https://github.com/slevomat/coding-standard
74
74
<!-- Checks that there is a certain number of blank lines between constants. -->
75
75
<rule ref =" SlevomatCodingStandard.Classes.ConstantSpacing" />
76
76
77
+ <rule ref =" SlevomatCodingStandard.Functions.NamedArgumentSpacing" />
78
+
79
+
77
80
78
81
<!-- CONTROL STRUCTURES -->
79
82
@@ -324,4 +327,5 @@ https://github.com/slevomat/coding-standard
324
327
</properties >
325
328
</rule >
326
329
<rule ref =" SlevomatCodingStandard.Functions.StrictCall" />
330
+ <rule ref =" SlevomatCodingStandard.Commenting.AnnotationName" />
327
331
</ruleset >
You can’t perform that action at this time.
0 commit comments