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:
252
252
253
253
# Reflection providers
254
254
255
- betterReflectionReflector :
256
- class : PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector
257
- arguments :
258
- reflector : @originalBetterReflectionReflector
259
- autowired : PHPStan\BetterReflection\Reflector\Reflector
260
-
261
255
betterReflectionProvider :
262
256
class : PHPStan\Reflection\BetterReflection\BetterReflectionProvider
263
257
arguments :
Original file line number Diff line number Diff line change 10
10
use PHPStan \BetterReflection \Reflection \ReflectionFunction ;
11
11
use PHPStan \BetterReflection \Reflector \Exception \IdentifierNotFound ;
12
12
use PHPStan \BetterReflection \Reflector \Reflector ;
13
+ use PHPStan \DependencyInjection \AutowiredParameter ;
14
+ use PHPStan \DependencyInjection \AutowiredService ;
13
15
use function array_key_exists ;
14
16
use function strtolower ;
15
17
18
+ #[AutowiredService(name: 'betterReflectionReflector ' , as: Reflector::class)]
16
19
final class MemoizingReflector implements Reflector
17
20
{
18
21
@@ -25,7 +28,10 @@ final class MemoizingReflector implements Reflector
25
28
/** @var array<string, ReflectionFunction|null> */
26
29
private array $ functionReflections = [];
27
30
28
- public function __construct (private Reflector $ reflector )
31
+ public function __construct (
32
+ #[AutowiredParameter(ref: '@originalBetterReflectionReflector ' )]
33
+ private Reflector $ reflector ,
34
+ )
29
35
{
30
36
}
31
37
You can’t perform that action at this time.
0 commit comments