@@ -187,8 +187,7 @@ protected function prepareRules() : void
187187 'no_spaces_inside_parenthesis ' => true ,
188188 'no_superfluous_elseif ' => true ,
189189 'no_superfluous_phpdoc_tags ' => false ,
190- 'no_trailing_comma_in_list_call ' => true ,
191- 'no_trailing_comma_in_singleline_array ' => true ,
190+ 'no_trailing_comma_in_singleline ' => true ,
192191 'no_trailing_whitespace ' => true ,
193192 'no_trailing_whitespace_in_comment ' => true ,
194193 'no_unneeded_control_parentheses ' => true ,
@@ -285,7 +284,9 @@ protected function prepareRules() : void
285284 'unary_operator_spaces ' => true ,
286285 'visibility_required ' => true ,
287286 'void_return ' => true ,
288- 'whitespace_after_comma_in_array ' => true ,
287+ 'whitespace_after_comma_in_array ' => [
288+ 'ensure_single_space ' => true ,
289+ ],
289290 'yoda_style ' => false ,
290291 ]);
291292 }
@@ -317,8 +318,7 @@ public function setHeaderComment(string $header) : static
317318 public function setDefaultHeaderComment (
318319 string $ packageName ,
319320 string $ copyright = ''
320- ) : static
321- {
321+ ) : static {
322322 $ copyrightLines = "\n" ;
323323 if ($ copyright ) {
324324 $ copyrightLines .= "\n" . '(c) ' . $ copyright . "\n" ;
0 commit comments