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(
28072807 return $ offsetAccessibleType ->getOffsetValueType ($ offsetType );
28082808 }
28092809
2810- private function resolveExactName (Name $ name ): ?string
2810+ private function resolveExactName (string $ name ): ?string
28112811 {
2812- $ originalClass = (string ) $ name ;
2813-
2814- switch (strtolower ($ originalClass )) {
2812+ switch (strtolower ($ name )) {
28152813 case 'self ' :
28162814 if (!$ this ->isInClass ()) {
28172815 return null ;
@@ -2830,7 +2828,7 @@ private function resolveExactName(Name $name): ?string
28302828 return null ;
28312829 }
28322830
2833- return $ originalClass ;
2831+ return $ name ;
28342832 }
28352833
28362834 /** @api */
@@ -5764,7 +5762,7 @@ public function debug(): array
57645762 */
57655763 private function exactInstantiation (New_ $ node , string $ className ): ?Type
57665764 {
5767- $ resolvedClassName = $ this ->resolveExactName (new Name ( $ className) );
5765+ $ resolvedClassName = $ this ->resolveExactName ($ className );
57685766 $ isStatic = false ;
57695767 if ($ resolvedClassName === null ) {
57705768 if (strtolower ($ className ) !== 'static ' ) {
You can’t perform that action at this time.
0 commit comments