From 95416a4f6c084a6d144b8e77b796d9205cf427bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 19 Aug 2022 09:52:27 +0200 Subject: [PATCH] Fix: Explicitly configure no_alternative_syntax fixer --- src/RuleSet/Php74.php | 4 +++- src/RuleSet/Php80.php | 4 +++- src/RuleSet/Php81.php | 4 +++- test/Unit/RuleSet/Php74Test.php | 4 +++- test/Unit/RuleSet/Php80Test.php | 4 +++- test/Unit/RuleSet/Php81Test.php | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 11005a47..b1e45a30 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -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, diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index a69d24d5..658b47de 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -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, diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index cf26eaf6..e71eb73c 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -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, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 71215e0c..81d2fa27 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -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, diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index 77a60015..5fda8fd5 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -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, diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index 8456e473..e0feb417 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -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,