From 91e7c989bddf288cfbbb6d024c6a48a7f078e983 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Fri, 21 Jun 2024 05:27:57 +0200 Subject: [PATCH] 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 @@ +