Skip to content

Commit

Permalink
#124 - fix NoCommentFixer.php after 3.59.3 php cs fixer release (#125)
Browse files Browse the repository at this point in the history
* fix NoCommentFixer.php after 3.59.3 php cs fixer release

* bump friendsofphp/php-cs-fixer
  • Loading branch information
mtracz authored Jun 20, 2024
1 parent 0b28382 commit fc04101
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
5 changes: 4 additions & 1 deletion src/Fixers/NoCommentFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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."))
Expand Down

0 comments on commit fc04101

Please sign in to comment.