diff --git a/CHANGELOG.md b/CHANGELOG.md index 43bbcd02..53d503d6 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 [`2.6.1...main`][2.6.1...main]. +### Changed + +* Enabled `array_push` fixer ([#279]), by [@localheinz] + ## [`2.6.1`][2.6.1] For a full diff see [`2.6.0...2.6.1`][2.6.0...2.6.1]. @@ -222,6 +226,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#264]: https://github.com/ergebnis/php-cs-fixer-config/pull/264 [#265]: https://github.com/ergebnis/php-cs-fixer-config/pull/265 [#276]: https://github.com/ergebnis/php-cs-fixer-config/pull/276 +[#279]: https://github.com/ergebnis/php-cs-fixer-config/pull/279 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 541e381d..b30c616f 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -24,7 +24,7 @@ final class Php71 extends AbstractRuleSet 'comment_type' => 'all_multiline', ], 'array_indentation' => true, - 'array_push' => false, + 'array_push' => true, 'array_syntax' => [ 'syntax' => 'short', ], diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index d077f258..3c7a2bee 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -24,7 +24,7 @@ final class Php73 extends AbstractRuleSet 'comment_type' => 'all_multiline', ], 'array_indentation' => true, - 'array_push' => false, + 'array_push' => true, 'array_syntax' => [ 'syntax' => 'short', ], diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index c9608228..2238d06e 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -24,7 +24,7 @@ final class Php74 extends AbstractRuleSet 'comment_type' => 'all_multiline', ], 'array_indentation' => true, - 'array_push' => false, + 'array_push' => true, 'array_syntax' => [ 'syntax' => 'short', ], diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index fbdf262d..25dfdc9a 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -30,7 +30,7 @@ final class Php71Test extends AbstractRuleSetTestCase 'comment_type' => 'all_multiline', ], 'array_indentation' => true, - 'array_push' => false, + 'array_push' => true, 'array_syntax' => [ 'syntax' => 'short', ], diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 88a7c2a4..2c41c796 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -30,7 +30,7 @@ final class Php73Test extends AbstractRuleSetTestCase 'comment_type' => 'all_multiline', ], 'array_indentation' => true, - 'array_push' => false, + 'array_push' => true, 'array_syntax' => [ 'syntax' => 'short', ], diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 2c1e08fe..771f076a 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -30,7 +30,7 @@ final class Php74Test extends AbstractRuleSetTestCase 'comment_type' => 'all_multiline', ], 'array_indentation' => true, - 'array_push' => false, + 'array_push' => true, 'array_syntax' => [ 'syntax' => 'short', ],