diff --git a/lib/Twig/Tests/View/TwigViewIntegrationTest.php b/lib/Twig/Tests/View/TwigViewIntegrationTest.php index 4924fbc9..5cbf6e56 100644 --- a/lib/Twig/Tests/View/TwigViewIntegrationTest.php +++ b/lib/Twig/Tests/View/TwigViewIntegrationTest.php @@ -10,7 +10,6 @@ use Pagerfanta\Twig\Extension\PagerfantaRuntime; use Pagerfanta\Twig\View\TwigView; use Pagerfanta\View\ViewFactory; -use Pagerfanta\View\ViewFactoryInterface; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Twig\Environment; @@ -24,7 +23,6 @@ */ final class TwigViewIntegrationTest extends TestCase { - public ViewFactoryInterface $viewFactory; public RouteGeneratorFactoryInterface $routeGeneratorFactory; public Environment $twig; diff --git a/rector.php b/rector.php index cd0f2a89..2fa17ea8 100644 --- a/rector.php +++ b/rector.php @@ -1,20 +1,23 @@ withPaths([ __DIR__.'/lib', ]) + ->withSkip([ + /* + * Skip selected rules in selected files + */ + + NarrowUnusedSetUpDefinedPropertyRector::class => [ + __DIR__.'/lib/Twig/Tests/View/TwigViewIntegrationTest.php', // Tries to inline the route generator factory which is used in the mocked runtime loader + ] + ]) ->withImportNames(importShortClasses: false) ->withPHPStanConfigs([__DIR__.'/phpstan.neon']) - ->withPreparedSets(codeQuality: true) - ->withSets([ - DoctrineSetList::DOCTRINE_DBAL_30, - DoctrineSetList::DOCTRINE_ORM_214, - PHPUnitSetList::PHPUNIT_100, - PHPUnitSetList::PHPUNIT_CODE_QUALITY, - ]) + ->withPreparedSets(codeQuality: true, phpunitCodeQuality: true) ;