diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cda751e..55ae493c 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 [`4.7.0...main`][4.7.0...main]. +For a full diff see [`4.8.0...main`][4.8.0...main]. + +## [`4.8.0`][4.8.0] + +For a full diff see [`4.7.0...4.8.0`][4.7.0...4.8.0]. + +### Changed + +- Updated `friendsofphp/php-cs-fixer` ([#651]), by [@dependabot] ## [`4.7.0`][4.7.0] @@ -546,6 +554,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [4.5.3]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/4.5.3 [4.6.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/4.6.0 [4.7.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/4.7.0 +[4.8.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/4.8.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 @@ -593,7 +602,8 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [4.5.2...4.5.3]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.5.2...4.5.3 [4.5.3...4.6.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.5.3...4.6.0 [4.6.0...4.7.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.6.0...4.7.0 -[4.7.0...main]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.7.0...main +[4.7.0...4.8.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.7.0...4.8.0 +[4.8.0...main]: https://github.com/ergebnis/php-cs-fixer-config/compare/4.8.0...main [#3]: https://github.com/ergebnis/php-cs-fixer-config/pull/3 [#14]: https://github.com/ergebnis/php-cs-fixer-config/pull/14 @@ -732,6 +742,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#644]: https://github.com/ergebnis/php-cs-fixer-config/pull/644 [#645]: https://github.com/ergebnis/php-cs-fixer-config/pull/645 [#646]: https://github.com/ergebnis/php-cs-fixer-config/pull/646 +[#651]: https://github.com/ergebnis/php-cs-fixer-config/pull/651 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/composer.json b/composer.json index cf9cbaf8..d4651e51 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "require": { "php": "^7.4 || ^8.0", "ext-filter": "*", - "friendsofphp/php-cs-fixer": "~3.10.0" + "friendsofphp/php-cs-fixer": "~3.11.0" }, "require-dev": { "ergebnis/composer-normalize": "^2.28.3", diff --git a/composer.lock b/composer.lock index a8195345..09984e13 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "1c33d060b2bc4b1c86330932e5a54964", + "content-hash": "4bec91fb6d0b94bd1413899a36b8bcdb", "packages": [ { "name": "composer/pcre", @@ -375,16 +375,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.10.0", + "version": "v3.11.0", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "76d7da666e66d83a1dc27a9d1c625c80cc4ac1fe" + "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/76d7da666e66d83a1dc27a9d1c625c80cc4ac1fe", - "reference": "76d7da666e66d83a1dc27a9d1c625c80cc4ac1fe", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/7dcdea3f2f5f473464e835be9be55283ff8cfdc3", + "reference": "7dcdea3f2f5f473464e835be9be55283ff8cfdc3", "shasum": "" }, "require": { @@ -452,7 +452,7 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.10.0" + "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.11.0" }, "funding": [ { @@ -460,7 +460,7 @@ "type": "github" } ], - "time": "2022-08-17T22:13:10+00:00" + "time": "2022-09-01T18:24:51+00:00" }, { "name": "psr/cache", @@ -1057,16 +1057,16 @@ }, { "name": "symfony/filesystem", - "version": "v5.4.11", + "version": "v5.4.12", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "6699fb0228d1bc35b12aed6dd5e7455457609ddd" + "reference": "2d67c1f9a1937406a9be3171b4b22250c0a11447" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/6699fb0228d1bc35b12aed6dd5e7455457609ddd", - "reference": "6699fb0228d1bc35b12aed6dd5e7455457609ddd", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/2d67c1f9a1937406a9be3171b4b22250c0a11447", + "reference": "2d67c1f9a1937406a9be3171b4b22250c0a11447", "shasum": "" }, "require": { @@ -1101,7 +1101,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.4.11" + "source": "https://github.com/symfony/filesystem/tree/v5.4.12" }, "funding": [ { @@ -1117,7 +1117,7 @@ "type": "tidelift" } ], - "time": "2022-07-20T13:00:38+00:00" + "time": "2022-08-02T13:48:16+00:00" }, { "name": "symfony/finder", diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index c4963731..ed3a216c 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -344,9 +344,13 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, @@ -575,7 +579,31 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'str', ], ], - 'phpdoc_separation' => true, + 'phpdoc_separation' => [ + 'groups' => [ + [ + 'deprecated', + 'link', + 'see', + 'since', + ], + [ + 'author', + 'copyright', + 'license', + ], + [ + 'category', + 'package', + 'subpackage', + ], + [ + 'property', + 'property-read', + 'property-write', + ], + ], + ], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_summary' => true, 'phpdoc_tag_casing' => [ diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index ccfafdb8..0f817205 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -345,9 +345,13 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, @@ -576,7 +580,31 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'str', ], ], - 'phpdoc_separation' => true, + 'phpdoc_separation' => [ + 'groups' => [ + [ + 'deprecated', + 'link', + 'see', + 'since', + ], + [ + 'author', + 'copyright', + 'license', + ], + [ + 'category', + 'package', + 'subpackage', + ], + [ + 'property', + 'property-read', + 'property-write', + ], + ], + ], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_summary' => true, 'phpdoc_tag_casing' => [ diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index b6a28827..b569d79f 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -345,9 +345,13 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, @@ -577,7 +581,31 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet 'str', ], ], - 'phpdoc_separation' => true, + 'phpdoc_separation' => [ + 'groups' => [ + [ + 'deprecated', + 'link', + 'see', + 'since', + ], + [ + 'author', + 'copyright', + 'license', + ], + [ + 'category', + 'package', + 'subpackage', + ], + [ + 'property', + 'property-read', + 'property-write', + ], + ], + ], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_summary' => true, 'phpdoc_tag_casing' => [ diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index ec5e0556..94580949 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -350,9 +350,13 @@ final class Php74Test extends ExplicitRuleSetTestCase 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, @@ -581,7 +585,31 @@ final class Php74Test extends ExplicitRuleSetTestCase 'str', ], ], - 'phpdoc_separation' => true, + 'phpdoc_separation' => [ + 'groups' => [ + [ + 'deprecated', + 'link', + 'see', + 'since', + ], + [ + 'author', + 'copyright', + 'license', + ], + [ + 'category', + 'package', + 'subpackage', + ], + [ + 'property', + 'property-read', + 'property-write', + ], + ], + ], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_summary' => true, 'phpdoc_tag_casing' => [ diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index 07a46bf2..1dcc946c 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -351,9 +351,13 @@ final class Php80Test extends ExplicitRuleSetTestCase 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, @@ -582,7 +586,31 @@ final class Php80Test extends ExplicitRuleSetTestCase 'str', ], ], - 'phpdoc_separation' => true, + 'phpdoc_separation' => [ + 'groups' => [ + [ + 'deprecated', + 'link', + 'see', + 'since', + ], + [ + 'author', + 'copyright', + 'license', + ], + [ + 'category', + 'package', + 'subpackage', + ], + [ + 'property', + 'property-read', + 'property-write', + ], + ], + ], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_summary' => true, 'phpdoc_tag_casing' => [ diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index f92835dd..c90ae7a6 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -351,9 +351,13 @@ final class Php81Test extends ExplicitRuleSetTestCase 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, @@ -583,7 +587,31 @@ final class Php81Test extends ExplicitRuleSetTestCase 'str', ], ], - 'phpdoc_separation' => true, + 'phpdoc_separation' => [ + 'groups' => [ + [ + 'deprecated', + 'link', + 'see', + 'since', + ], + [ + 'author', + 'copyright', + 'license', + ], + [ + 'category', + 'package', + 'subpackage', + ], + [ + 'property', + 'property-read', + 'property-write', + ], + ], + ], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_summary' => true, 'phpdoc_tag_casing' => [