From 01e44a0725cc5b70809e10bee080b0ee720b0e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 11 Dec 2020 11:21:03 +0100 Subject: [PATCH] Enhancement: Enable ereg_to_preg fixer --- CHANGELOG.md | 2 ++ src/RuleSet/Php72.php | 2 +- src/RuleSet/Php74.php | 2 +- test/Unit/RuleSet/Php72Test.php | 2 +- test/Unit/RuleSet/Php74Test.php | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12c84c8..a0856b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ For a full diff see [`1.2.0...main`][1.2.0...main]. * Enabled `array_push` fixer ([#27]), by [@localheinz] * Enabled `combine_nested_dirname` fixer ([#28]), by [@localheinz] * Enabled `dir_constant` fixer ([#29]), by [@localheinz] +* Enabled `ereg_to_preg` fixer ([#30]), by [@localheinz] ## [`1.2.0`][1.2.0] @@ -62,5 +63,6 @@ For a full diff see [`b9012df...1.0.0`][b9012df...1.0.0]. [#27]: https://github.com/gansel-rechtsanwaelte/php-cs-fixer-config/pull/27 [#28]: https://github.com/gansel-rechtsanwaelte/php-cs-fixer-config/pull/28 [#29]: https://github.com/gansel-rechtsanwaelte/php-cs-fixer-config/pull/29 +[#30]: https://github.com/gansel-rechtsanwaelte/php-cs-fixer-config/pull/30 [@localheinz]: https://github.com/localheinz diff --git a/src/RuleSet/Php72.php b/src/RuleSet/Php72.php index d4b216f..49c6c85 100644 --- a/src/RuleSet/Php72.php +++ b/src/RuleSet/Php72.php @@ -91,7 +91,7 @@ final class Php72 extends AbstractRuleSet 'echo_tag_syntax' => true, 'elseif' => true, 'encoding' => true, - 'ereg_to_preg' => false, + 'ereg_to_preg' => true, 'error_suppression' => false, 'escape_implicit_backslashes' => false, 'explicit_indirect_variable' => false, diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index ee11ed5..680f014 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -91,7 +91,7 @@ final class Php74 extends AbstractRuleSet 'echo_tag_syntax' => true, 'elseif' => true, 'encoding' => true, - 'ereg_to_preg' => false, + 'ereg_to_preg' => true, 'error_suppression' => false, 'escape_implicit_backslashes' => false, 'explicit_indirect_variable' => false, diff --git a/test/Unit/RuleSet/Php72Test.php b/test/Unit/RuleSet/Php72Test.php index e3532ea..fffec2b 100644 --- a/test/Unit/RuleSet/Php72Test.php +++ b/test/Unit/RuleSet/Php72Test.php @@ -97,7 +97,7 @@ final class Php72Test extends AbstractRuleSetTestCase 'echo_tag_syntax' => true, 'elseif' => true, 'encoding' => true, - 'ereg_to_preg' => false, + 'ereg_to_preg' => true, 'error_suppression' => false, 'escape_implicit_backslashes' => false, 'explicit_indirect_variable' => false, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 6c7ea54..c9196e4 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -97,7 +97,7 @@ final class Php74Test extends AbstractRuleSetTestCase 'echo_tag_syntax' => true, 'elseif' => true, 'encoding' => true, - 'ereg_to_preg' => false, + 'ereg_to_preg' => true, 'error_suppression' => false, 'escape_implicit_backslashes' => false, 'explicit_indirect_variable' => false,