Skip to content

Commit 9898ba5

Browse files
ondrejmirtesclaude
andcommitted
Remove nodeScopeResolverReflector service
It was only needed so that the stub validator container could point NodeScopeResolver to a different reflector. Since the stub validator now overrides the source locator instead, the service is just an alias of betterReflectionReflector, which is what a plain Reflector type-hint autowires to anyway. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017DjgMHgfvwhD4ogdTaRtLp
1 parent 0f1ad6e commit 9898ba5

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

‎conf/services.neon‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,6 @@ services:
246246
autowired:
247247
- PHPStan\Reflection\ReflectionProvider
248248

249-
nodeScopeResolverReflector:
250-
factory: @betterReflectionReflector
251-
autowired: false
252-
253249
# not registered using attributes because people often override it
254250

255251
exceptionTypeResolver:

‎src/Analyser/NodeScopeResolver.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ public function __construct(
214214
private readonly Container $container,
215215
private readonly ReflectionProvider $reflectionProvider,
216216
private readonly InitializerExprTypeResolver $initializerExprTypeResolver,
217-
#[AutowiredParameter(ref: '@nodeScopeResolverReflector')]
218217
private readonly Reflector $reflector,
219218
private readonly ClassReflectionFactory $classReflectionFactory,
220219
private readonly ParameterOutTypeExtensionProvider $parameterOutTypeExtensionProvider,

0 commit comments

Comments
 (0)