File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/Reflection/BetterReflection/Reflector Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -252,12 +252,6 @@ services:
252252
253253 # Reflection providers
254254
255- betterReflectionReflector :
256- class : PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector
257- arguments :
258- reflector : @originalBetterReflectionReflector
259- autowired : PHPStan\BetterReflection\Reflector\Reflector
260-
261255 betterReflectionProvider :
262256 class : PHPStan\Reflection\BetterReflection\BetterReflectionProvider
263257 arguments :
Original file line number Diff line number Diff line change 1010use PHPStan \BetterReflection \Reflection \ReflectionFunction ;
1111use PHPStan \BetterReflection \Reflector \Exception \IdentifierNotFound ;
1212use PHPStan \BetterReflection \Reflector \Reflector ;
13+ use PHPStan \DependencyInjection \AutowiredParameter ;
14+ use PHPStan \DependencyInjection \AutowiredService ;
1315use function array_key_exists ;
1416use function strtolower ;
1517
18+ #[AutowiredService(name: 'betterReflectionReflector ' , as: Reflector::class)]
1619final class MemoizingReflector implements Reflector
1720{
1821
@@ -25,7 +28,10 @@ final class MemoizingReflector implements Reflector
2528 /** @var array<string, ReflectionFunction|null> */
2629 private array $ functionReflections = [];
2730
28- public function __construct (private Reflector $ reflector )
31+ public function __construct (
32+ #[AutowiredParameter(ref: '@originalBetterReflectionReflector ' )]
33+ private Reflector $ reflector ,
34+ )
2935 {
3036 }
3137
You can’t perform that action at this time.
0 commit comments