Skip to content

Commit

Permalink
Update AbstractFixer.php add missing interface (#12)
Browse files Browse the repository at this point in the history
* Update AbstractFixer.php

PHPCsFixer breaks on this. See 

https://github.com/palantirnet/drupal-rector/actions/runs/8482298291/job/23241277607?pr=297

* Add missing Fixer\FixerInterface
  • Loading branch information
bbrala authored Apr 8, 2024
1 parent 5aa6c8a commit 30d9afa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stubs/PhpCsFixer/AbstractFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
return;
}

abstract class AbstractFixer
use PhpCsFixer\Fixer\FixerInterface;

abstract class AbstractFixer implements FixerInterface
{
}
14 changes: 14 additions & 0 deletions stubs/PhpCsFixer/Fixer/FixerInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace PhpCsFixer\Fixer;

use PhpCsFixer\FixerDefinitionInterface;
use PhpCsFixer\Tokens;

if (class_exists('PhpCsFixer\FixerInterface')) {
return;
}

interface FixerInterface
{
}

0 comments on commit 30d9afa

Please sign in to comment.