From fabee3d9f303c7f11ffe9f5208953432e4c5e0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 15 Sep 2023 09:54:56 +0200 Subject: [PATCH] Fix: Target PHP versions --- CHANGELOG.md | 5 +++++ src/RuleSet/Php53.php | 2 +- src/RuleSet/Php54.php | 2 +- src/RuleSet/Php55.php | 2 +- src/RuleSet/Php56.php | 2 +- src/RuleSet/Php70.php | 2 +- test/Unit/RuleSet/Php53Test.php | 2 +- test/Unit/RuleSet/Php54Test.php | 2 +- test/Unit/RuleSet/Php55Test.php | 2 +- test/Unit/RuleSet/Php56Test.php | 2 +- test/Unit/RuleSet/Php70Test.php | 2 +- 11 files changed, 15 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9153ca6..35094c92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), For a full diff see [`5.15.1...main`][5.15.1...main]. +### Fixed + +- Fixed target PHP versions in `Config\Ruleset\Php53`, `Config\Ruleset\Php54`, `Config\Ruleset\Php55`, `Config\Ruleset\Php56`, and `Config\Ruleset\Php70` ([#864]), by [@localheinz] + ## [`5.15.1`][5.15.1] For a full diff see [`5.15.0...5.15.1`][5.15.0...5.15.1]. @@ -1143,6 +1147,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#850]: https://github.com/ergebnis/php-cs-fixer-config/pull/850 [#856]: https://github.com/ergebnis/php-cs-fixer-config/pull/856 [#857]: https://github.com/ergebnis/php-cs-fixer-config/pull/857 +[#864]: https://github.com/ergebnis/php-cs-fixer-config/pull/864 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php53.php b/src/RuleSet/Php53.php index 7fa37481..eaa34e90 100644 --- a/src/RuleSet/Php53.php +++ b/src/RuleSet/Php53.php @@ -810,5 +810,5 @@ final class Php53 extends AbstractRuleSet implements ExplicitRuleSet 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 50300; } diff --git a/src/RuleSet/Php54.php b/src/RuleSet/Php54.php index 9d942ca0..b579bad4 100644 --- a/src/RuleSet/Php54.php +++ b/src/RuleSet/Php54.php @@ -812,5 +812,5 @@ final class Php54 extends AbstractRuleSet implements ExplicitRuleSet 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 50400; } diff --git a/src/RuleSet/Php55.php b/src/RuleSet/Php55.php index 91cedb45..fa590fde 100644 --- a/src/RuleSet/Php55.php +++ b/src/RuleSet/Php55.php @@ -821,5 +821,5 @@ final class Php55 extends AbstractRuleSet implements ExplicitRuleSet 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 50500; } diff --git a/src/RuleSet/Php56.php b/src/RuleSet/Php56.php index d1520dda..0e7946c9 100644 --- a/src/RuleSet/Php56.php +++ b/src/RuleSet/Php56.php @@ -821,5 +821,5 @@ final class Php56 extends AbstractRuleSet implements ExplicitRuleSet 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 50600; } diff --git a/src/RuleSet/Php70.php b/src/RuleSet/Php70.php index 6e25f367..ae3a1c30 100644 --- a/src/RuleSet/Php70.php +++ b/src/RuleSet/Php70.php @@ -821,5 +821,5 @@ final class Php70 extends AbstractRuleSet implements ExplicitRuleSet 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 70000; } diff --git a/test/Unit/RuleSet/Php53Test.php b/test/Unit/RuleSet/Php53Test.php index 22704409..bc05039b 100644 --- a/test/Unit/RuleSet/Php53Test.php +++ b/test/Unit/RuleSet/Php53Test.php @@ -815,5 +815,5 @@ final class Php53Test extends ExplicitRuleSetTestCase 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 50300; } diff --git a/test/Unit/RuleSet/Php54Test.php b/test/Unit/RuleSet/Php54Test.php index 0d071072..3d90872d 100644 --- a/test/Unit/RuleSet/Php54Test.php +++ b/test/Unit/RuleSet/Php54Test.php @@ -817,5 +817,5 @@ final class Php54Test extends ExplicitRuleSetTestCase 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 50400; } diff --git a/test/Unit/RuleSet/Php55Test.php b/test/Unit/RuleSet/Php55Test.php index b9f76450..8192c26b 100644 --- a/test/Unit/RuleSet/Php55Test.php +++ b/test/Unit/RuleSet/Php55Test.php @@ -826,5 +826,5 @@ final class Php55Test extends ExplicitRuleSetTestCase 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 50500; } diff --git a/test/Unit/RuleSet/Php56Test.php b/test/Unit/RuleSet/Php56Test.php index 1507c7c8..aef22ce8 100644 --- a/test/Unit/RuleSet/Php56Test.php +++ b/test/Unit/RuleSet/Php56Test.php @@ -826,5 +826,5 @@ final class Php56Test extends ExplicitRuleSetTestCase 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 50600; } diff --git a/test/Unit/RuleSet/Php70Test.php b/test/Unit/RuleSet/Php70Test.php index 91824d9a..aeacb4dd 100644 --- a/test/Unit/RuleSet/Php70Test.php +++ b/test/Unit/RuleSet/Php70Test.php @@ -826,5 +826,5 @@ final class Php70Test extends ExplicitRuleSetTestCase 'less_and_greater' => true, ], ]; - protected int $targetPhpVersion = 70100; + protected int $targetPhpVersion = 70000; }