Skip to content

Commit

Permalink
Fix: Explicitly configure new_with_braces fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 19, 2022
1 parent 95416a4 commit a4e1c93
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'strict' => false,
],
'native_function_type_declaration_casing' => true,
'new_with_braces' => true,
'new_with_braces' => [
'anonymous_class' => true,
'named_class' => true,
],
'no_alias_functions' => [
'sets' => [
'@IMAP',
Expand Down
5 changes: 4 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'strict' => false,
],
'native_function_type_declaration_casing' => true,
'new_with_braces' => true,
'new_with_braces' => [
'anonymous_class' => true,
'named_class' => true,
],
'no_alias_functions' => [
'sets' => [
'@IMAP',
Expand Down
5 changes: 4 additions & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'strict' => false,
],
'native_function_type_declaration_casing' => true,
'new_with_braces' => true,
'new_with_braces' => [
'anonymous_class' => true,
'named_class' => true,
],
'no_alias_functions' => [
'sets' => [
'@IMAP',
Expand Down
5 changes: 4 additions & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@ final class Php74Test extends ExplicitRuleSetTestCase
'strict' => false,
],
'native_function_type_declaration_casing' => true,
'new_with_braces' => true,
'new_with_braces' => [
'anonymous_class' => true,
'named_class' => true,
],
'no_alias_functions' => [
'sets' => [
'@IMAP',
Expand Down
5 changes: 4 additions & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@ final class Php80Test extends ExplicitRuleSetTestCase
'strict' => false,
],
'native_function_type_declaration_casing' => true,
'new_with_braces' => true,
'new_with_braces' => [
'anonymous_class' => true,
'named_class' => true,
],
'no_alias_functions' => [
'sets' => [
'@IMAP',
Expand Down
5 changes: 4 additions & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@ final class Php81Test extends ExplicitRuleSetTestCase
'strict' => false,
],
'native_function_type_declaration_casing' => true,
'new_with_braces' => true,
'new_with_braces' => [
'anonymous_class' => true,
'named_class' => true,
],
'no_alias_functions' => [
'sets' => [
'@IMAP',
Expand Down

0 comments on commit a4e1c93

Please sign in to comment.