From 7d4bc785f35be2490be8a8c5fe9928c516f69872 Mon Sep 17 00:00:00 2001 From: tomasJancar Date: Tue, 4 Aug 2026 12:01:23 +0200 Subject: [PATCH] =?UTF-8?q?DE-175591=20fix:=20keep=20FileInfoMatcher=20reg?= =?UTF-8?q?istered=20=E2=80=94=20Rector=202.5.9=20kept=20the=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only its three collaborators (FnMatchPathNormalizer, Fnmatcher, RealpathMatcher) were removed upstream. Consumers registering DisallowConstantsInTestsRule rely on this service being provided by default-phpstan.neon; without it PHPStan DI fails with "Service of type Rector\Skipper\Matcher\FileInfoMatcher ... not found". Co-Authored-By: Claude Fable 5 --- default-phpstan.neon | 1 + phpstan.neon | 1 + 2 files changed, 2 insertions(+) diff --git a/default-phpstan.neon b/default-phpstan.neon index 5e2b510..7084b35 100644 --- a/default-phpstan.neon +++ b/default-phpstan.neon @@ -10,6 +10,7 @@ includes: services: # Handy services from Rector package - Rector\NodeNameResolver\NodeNameResolver + - Rector\Skipper\Matcher\FileInfoMatcher - Rector\CodingStyle\Naming\ClassNaming - Rector\NodeAnalyzer\CallAnalyzer diff --git a/phpstan.neon b/phpstan.neon index 05928df..3ffe504 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -9,6 +9,7 @@ includes: services: # Handy services from Rector package - Rector\NodeNameResolver\NodeNameResolver + - Rector\Skipper\Matcher\FileInfoMatcher - Rector\CodingStyle\Naming\ClassNaming - Rector\NodeAnalyzer\CallAnalyzer