From 91e7c989bddf288cfbbb6d024c6a48a7f078e983 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Fri, 21 Jun 2024 05:27:57 +0200 Subject: [PATCH 1/3] Fixes #12. Add trait for compatibility with PHP-CS-Fixer 3.59.3 (#14) * Add trait for compatibility with 3.59.2 and 3.59.3 * Cleanup solution and add note about why this hack has been introduced * Suppress PHPStan for method_exists call --------- Co-authored-by: ErickSkrauch --- src/Fixer/ConfigurableFixerTrait.php | 24 +++++++++++++++++++ .../AlignMultilineParametersFixer.php | 2 ++ .../BlankLineAroundClassBodyFixer.php | 2 ++ .../MultilineIfStatementBracesFixer.php | 2 ++ 4 files changed, 30 insertions(+) create mode 100644 src/Fixer/ConfigurableFixerTrait.php diff --git a/src/Fixer/ConfigurableFixerTrait.php b/src/Fixer/ConfigurableFixerTrait.php new file mode 100644 index 0000000..e4dc535 --- /dev/null +++ b/src/Fixer/ConfigurableFixerTrait.php @@ -0,0 +1,24 @@ + Date: Fri, 21 Jun 2024 05:33:14 +0200 Subject: [PATCH 2/3] Update README for #14 [skip ci] --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6609bdf..59c9400 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Enh #4: Introduce `ErickSkrauch\ordered_overrides` fixer. +### Fixed +- Fix #14: Ensure compatibility with PHP-CS-Fixer 3.59.3 (alamirault). + ## [1.2.4] - 2024-01-15 ### Fixed - Bug #9: `ErickSkrauch/align_multiline_parameters` now correctly aligns variadic arguments. From 36fb7f8204c1e17d9b8a24910e2147d0a3973b9c Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 21 Jun 2024 22:19:52 +0200 Subject: [PATCH 3/3] Prepare 1.3.0 release --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59c9400..7883dd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [1.3.0] - 2024-06-21 ### Added - Enh #4: Introduce `ErickSkrauch\ordered_overrides` fixer. @@ -47,7 +49,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Initial implementation (extracted from [`elyby/php-code-style`](https://github.com/elyby/php-code-style/tree/0.5.0)). -[Unreleased]: https://github.com/erickskrauch/php-cs-fixer-custom-fixers/compare/1.2.4...HEAD +[Unreleased]: https://github.com/erickskrauch/php-cs-fixer-custom-fixers/compare/1.3.0...HEAD +[1.3.0]: https://github.com/erickskrauch/php-cs-fixer-custom-fixers/compare/1.3.0...1.2.4 [1.2.4]: https://github.com/erickskrauch/php-cs-fixer-custom-fixers/compare/1.2.3...1.2.4 [1.2.3]: https://github.com/erickskrauch/php-cs-fixer-custom-fixers/compare/1.2.2...1.2.3 [1.2.2]: https://github.com/erickskrauch/php-cs-fixer-custom-fixers/compare/1.2.1...1.2.2