File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2807,11 +2807,9 @@ private function getTypeFromArrayDimFetch(
2807
2807
return $ offsetAccessibleType ->getOffsetValueType ($ offsetType );
2808
2808
}
2809
2809
2810
- private function resolveExactName (Name $ name ): ?string
2810
+ private function resolveExactName (string $ name ): ?string
2811
2811
{
2812
- $ originalClass = (string ) $ name ;
2813
-
2814
- switch (strtolower ($ originalClass )) {
2812
+ switch (strtolower ($ name )) {
2815
2813
case 'self ' :
2816
2814
if (!$ this ->isInClass ()) {
2817
2815
return null ;
@@ -2830,7 +2828,7 @@ private function resolveExactName(Name $name): ?string
2830
2828
return null ;
2831
2829
}
2832
2830
2833
- return $ originalClass ;
2831
+ return $ name ;
2834
2832
}
2835
2833
2836
2834
/** @api */
@@ -5764,7 +5762,7 @@ public function debug(): array
5764
5762
*/
5765
5763
private function exactInstantiation (New_ $ node , string $ className ): ?Type
5766
5764
{
5767
- $ resolvedClassName = $ this ->resolveExactName (new Name ( $ className) );
5765
+ $ resolvedClassName = $ this ->resolveExactName ($ className );
5768
5766
$ isStatic = false ;
5769
5767
if ($ resolvedClassName === null ) {
5770
5768
if (strtolower ($ className ) !== 'static ' ) {
You can’t perform that action at this time.
0 commit comments