@@ -45,62 +45,97 @@ public static function getInstance(): Broker
45
45
return self ::$ instance ;
46
46
}
47
47
48
+ /**
49
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
50
+ */
48
51
public function hasClass (string $ className ): bool
49
52
{
50
53
return $ this ->reflectionProvider ->hasClass ($ className );
51
54
}
52
55
56
+ /**
57
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
58
+ */
53
59
public function getClass (string $ className ): ClassReflection
54
60
{
55
61
return $ this ->reflectionProvider ->getClass ($ className );
56
62
}
57
63
64
+ /**
65
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
66
+ */
58
67
public function getClassName (string $ className ): string
59
68
{
60
69
return $ this ->reflectionProvider ->getClassName ($ className );
61
70
}
62
71
72
+ /**
73
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
74
+ */
63
75
public function supportsAnonymousClasses (): bool
64
76
{
65
77
return $ this ->reflectionProvider ->supportsAnonymousClasses ();
66
78
}
67
79
80
+ /**
81
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
82
+ */
68
83
public function getAnonymousClassReflection (\PhpParser \Node \Stmt \Class_ $ classNode , Scope $ scope ): ClassReflection
69
84
{
70
85
return $ this ->reflectionProvider ->getAnonymousClassReflection ($ classNode , $ scope );
71
86
}
72
87
88
+ /**
89
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
90
+ */
73
91
public function hasFunction (\PhpParser \Node \Name $ nameNode , ?Scope $ scope ): bool
74
92
{
75
93
return $ this ->reflectionProvider ->hasFunction ($ nameNode , $ scope );
76
94
}
77
95
96
+ /**
97
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
98
+ */
78
99
public function getFunction (\PhpParser \Node \Name $ nameNode , ?Scope $ scope ): FunctionReflection
79
100
{
80
101
return $ this ->reflectionProvider ->getFunction ($ nameNode , $ scope );
81
102
}
82
103
104
+ /**
105
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
106
+ */
83
107
public function resolveFunctionName (\PhpParser \Node \Name $ nameNode , ?Scope $ scope ): ?string
84
108
{
85
109
return $ this ->reflectionProvider ->resolveFunctionName ($ nameNode , $ scope );
86
110
}
87
111
112
+ /**
113
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
114
+ */
88
115
public function hasConstant (\PhpParser \Node \Name $ nameNode , ?Scope $ scope ): bool
89
116
{
90
117
return $ this ->reflectionProvider ->hasConstant ($ nameNode , $ scope );
91
118
}
92
119
120
+ /**
121
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
122
+ */
93
123
public function getConstant (\PhpParser \Node \Name $ nameNode , ?Scope $ scope ): GlobalConstantReflection
94
124
{
95
125
return $ this ->reflectionProvider ->getConstant ($ nameNode , $ scope );
96
126
}
97
127
128
+ /**
129
+ * @deprecated Use PHPStan\Reflection\ReflectionProvider instead
130
+ */
98
131
public function resolveConstantName (\PhpParser \Node \Name $ nameNode , ?Scope $ scope ): ?string
99
132
{
100
133
return $ this ->reflectionProvider ->resolveConstantName ($ nameNode , $ scope );
101
134
}
102
135
103
136
/**
137
+ * @deprecated Inject %universalObjectCratesClasses% parameter instead.
138
+ *
104
139
* @return string[]
105
140
*/
106
141
public function getUniversalObjectCratesClasses (): array
0 commit comments