From 5bec3e15ca138f411440ac1399cb498771f5d7f0 Mon Sep 17 00:00:00 2001 From: Marcin Tracz Date: Wed, 19 Jun 2024 12:28:28 +0200 Subject: [PATCH 1/2] fix NoCommentFixer.php after 3.59.3 php cs fixer release --- src/Fixers/NoCommentFixer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Fixers/NoCommentFixer.php b/src/Fixers/NoCommentFixer.php index c3add54..9d9c501 100644 --- a/src/Fixers/NoCommentFixer.php +++ b/src/Fixers/NoCommentFixer.php @@ -6,6 +6,7 @@ use PhpCsFixer\AbstractFixer; use PhpCsFixer\Fixer\ConfigurableFixerInterface; +use PhpCsFixer\Fixer\ConfigurableFixerTrait; use PhpCsFixer\Fixer\Whitespace\NoExtraBlankLinesFixer; use PhpCsFixer\FixerConfiguration\FixerConfigurationResolver; use PhpCsFixer\FixerConfiguration\FixerOptionBuilder; @@ -18,7 +19,9 @@ final class NoCommentFixer extends AbstractFixer implements ConfigurableFixerInterface { - public function getConfigurationDefinition(): FixerConfigurationResolver + use ConfigurableFixerTrait; + + public function createConfigurationDefinition(): FixerConfigurationResolver { return new FixerConfigurationResolver([ (new FixerOptionBuilder("doc_comment", "Docblock comments should be removed.")) From 0fafc5be317721b21cd1cc0c6e6b0d61a99a7905 Mon Sep 17 00:00:00 2001 From: Marcin Tracz Date: Wed, 19 Jun 2024 12:37:57 +0200 Subject: [PATCH 2/2] bump friendsofphp/php-cs-fixer --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 22f041b..aac7b05 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "type": "library", "require": { "php": "^8.1", - "friendsofphp/php-cs-fixer": "^3.58", + "friendsofphp/php-cs-fixer": "^3.59", "kubawerlos/php-cs-fixer-custom-fixers": "^3.21" }, "require-dev": {