Skip to content

Commit

Permalink
Fix: Explicitly configure no_alternative_syntax fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 19, 2022
1 parent 2aaf351 commit 95416a4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
],
],
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
'no_alternative_syntax' => [
'fix_non_monolithic_code' => false,
],
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
],
],
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
'no_alternative_syntax' => [
'fix_non_monolithic_code' => false,
],
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
],
],
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
'no_alternative_syntax' => [
'fix_non_monolithic_code' => false,
],
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ final class Php74Test extends ExplicitRuleSetTestCase
],
],
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
'no_alternative_syntax' => [
'fix_non_monolithic_code' => false,
],
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ final class Php80Test extends ExplicitRuleSetTestCase
],
],
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
'no_alternative_syntax' => [
'fix_non_monolithic_code' => false,
],
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ final class Php81Test extends ExplicitRuleSetTestCase
],
],
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
'no_alternative_syntax' => [
'fix_non_monolithic_code' => false,
],
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
Expand Down

0 comments on commit 95416a4

Please sign in to comment.