File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -252,10 +252,6 @@ services:
252252 class : PHPStan\Php\PhpVersionFactory
253253 factory : @PHPStan\Php\PhpVersionFactoryFactory::create
254254
255- -
256- class : PHPStan\PhpDoc\TypeNodeResolverExtensionRegistryProvider
257- factory : PHPStan\PhpDoc\LazyTypeNodeResolverExtensionRegistryProvider
258-
259255 -
260256 class : PHPStan\Analyser\ConstantResolver
261257 factory : @PHPStan\Analyser\ConstantResolverFactory::create ()
@@ -281,12 +277,6 @@ services:
281277 class : PHPStan\Collectors\Registry
282278 factory : @PHPStan\Collectors\RegistryFactory::create
283279
284- -
285- class : PHPStan\DependencyInjection\Container
286- factory : PHPStan\DependencyInjection\MemoizingContainer
287- arguments :
288- originalContainer : @PHPStan\DependencyInjection\Nette\NetteContainer
289-
290280 -
291281 class : PHPStan\DependencyInjection\Reflection\ClassReflectionExtensionRegistryProvider
292282 factory : PHPStan\DependencyInjection\Reflection\LazyClassReflectionExtensionRegistryProvider
Original file line number Diff line number Diff line change 44
55use function array_key_exists ;
66
7+ #[AutowiredService(as: Container::class)]
78final class MemoizingContainer implements Container
89{
910
1011 /** @var array<string, mixed> */
1112 private array $ servicesByType = [];
1213
13- public function __construct (private Container $ originalContainer )
14+ public function __construct (
15+ #[AutowiredParameter(ref: '@PHPStan\DependencyInjection\Nette\NetteContainer ' )]
16+ private Container $ originalContainer ,
17+ )
1418 {
1519 }
1620
Original file line number Diff line number Diff line change 22
33namespace PHPStan \PhpDoc ;
44
5+ use PHPStan \DependencyInjection \AutowiredService ;
56use PHPStan \DependencyInjection \Container ;
67
8+ #[AutowiredService(as: TypeNodeResolverExtensionRegistryProvider::class)]
79final class LazyTypeNodeResolverExtensionRegistryProvider implements TypeNodeResolverExtensionRegistryProvider
810{
911
You can’t perform that action at this time.
0 commit comments