Skip to content

Commit ed0d74a

Browse files
authored
Update src/Analyser/ConstantResolver.php
1 parent 7e803ee commit ed0d74a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Analyser/ConstantResolver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ public function resolveConstantType(string $constantName, Type $constantType): T
414414
$typeStringResolver = $this->container->getByType(TypeStringResolver::class);
415415
return $typeStringResolver->resolve($phpdocTypes, new NameScope(null, [], null));
416416
}
417+
return $constantType;
417418
}
418419
if (in_array($constantName, $this->dynamicConstantNames, true)) {
419420
return $constantType->generalize(GeneralizePrecision::lessSpecific());

0 commit comments

Comments
 (0)