diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dafc195..1a2f39bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased -For a full diff see [`2.4.0...main`][2.4.0...main]. +For a full diff see [`2.5.0...main`][2.5.0...main]. + +## [`2.5.0`][2.5.0] + +For a full diff see [`2.4.0...2.5.0`][2.4.0...2.5.0]. + +### Changed + +* Configured the `phpdoc_add_missing_param_annotation` fixer to add annotation for untyped parameters only ([#220]), by [@localheinz] ## [`2.4.0`][2.4.0] @@ -112,6 +120,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [2.2.2]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/2.2.2 [2.3.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/2.3.0 [2.4.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/2.4.0 +[2.5.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/2.5.0 [d899e77...1.0.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/d899e77...1.0.0 [1.0.0...1.1.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/1.0.0...1.1.0 @@ -125,7 +134,8 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [2.2.1...2.2.2]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.2.1...2.2.2 [2.2.2...2.3.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.2.1...2.3.0 [2.3.0...2.4.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.3.0...2.4.0 -[2.4.0...main]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.4.0...main +[2.4.0...2.5.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.4.0...2.5.0 +[2.5.0...main]: https://github.com/ergebnis/php-cs-fixer-config/compare/2.5.0...main [#3]: https://github.com/ergebnis/php-cs-fixer-config/pull/3 [#14]: https://github.com/ergebnis/php-cs-fixer-config/pull/14 @@ -138,6 +148,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#168]: https://github.com/ergebnis/php-cs-fixer-config/pull/168 [#200]: https://github.com/ergebnis/php-cs-fixer-config/pull/200 [#215]: https://github.com/ergebnis/php-cs-fixer-config/pull/215 +[#220]: https://github.com/ergebnis/php-cs-fixer-config/pull/220 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index b4f8ae0a..9cd349e0 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -262,7 +262,7 @@ final class Php71 extends AbstractRuleSet ], 'php_unit_test_class_requires_covers' => true, 'phpdoc_add_missing_param_annotation' => [ - 'only_untyped' => false, + 'only_untyped' => true, ], 'phpdoc_align' => true, 'phpdoc_annotation_without_dot' => true, diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index e25f233a..e843f917 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -262,7 +262,7 @@ final class Php73 extends AbstractRuleSet ], 'php_unit_test_class_requires_covers' => true, 'phpdoc_add_missing_param_annotation' => [ - 'only_untyped' => false, + 'only_untyped' => true, ], 'phpdoc_align' => true, 'phpdoc_annotation_without_dot' => true, diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 954448a0..957cc7f4 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -261,7 +261,7 @@ final class Php74 extends AbstractRuleSet ], 'php_unit_test_class_requires_covers' => true, 'phpdoc_add_missing_param_annotation' => [ - 'only_untyped' => false, + 'only_untyped' => true, ], 'phpdoc_align' => true, 'phpdoc_annotation_without_dot' => true, diff --git a/test/Unit/RuleSet/AbstractRuleSetTestCase.php b/test/Unit/RuleSet/AbstractRuleSetTestCase.php index 2db95e9d..3223056f 100644 --- a/test/Unit/RuleSet/AbstractRuleSetTestCase.php +++ b/test/Unit/RuleSet/AbstractRuleSetTestCase.php @@ -180,8 +180,6 @@ final protected static function className(): string } /** - * @param ?string $header - * * @throws \RuntimeException */ final protected static function createRuleSet(?string $header = null): Config\RuleSet diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 5ec4108e..587458b2 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -268,7 +268,7 @@ final class Php71Test extends AbstractRuleSetTestCase ], 'php_unit_test_class_requires_covers' => true, 'phpdoc_add_missing_param_annotation' => [ - 'only_untyped' => false, + 'only_untyped' => true, ], 'phpdoc_align' => true, 'phpdoc_annotation_without_dot' => true, diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 2443b77b..f24bd828 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -268,7 +268,7 @@ final class Php73Test extends AbstractRuleSetTestCase ], 'php_unit_test_class_requires_covers' => true, 'phpdoc_add_missing_param_annotation' => [ - 'only_untyped' => false, + 'only_untyped' => true, ], 'phpdoc_align' => true, 'phpdoc_annotation_without_dot' => true, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index f152b4ac..b0c25f86 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -267,7 +267,7 @@ final class Php74Test extends AbstractRuleSetTestCase ], 'php_unit_test_class_requires_covers' => true, 'phpdoc_add_missing_param_annotation' => [ - 'only_untyped' => false, + 'only_untyped' => true, ], 'phpdoc_align' => true, 'phpdoc_annotation_without_dot' => true,