We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd9a74 commit c3041eaCopy full SHA for c3041ea
src/Type/Php/DefineConstantTypeSpecifyingExtension.php
@@ -51,7 +51,7 @@ public function specifyTypes(
51
}
52
53
$valueType = $scope->getType($node->getArgs()[1]->value);
54
- $finalType = ($valueType === null) ? null : $scope->getConstantExplicitTypeFromConfig(
+ $finalType = $scope->getConstantExplicitTypeFromConfig(
55
$constantName->getValue(),
56
$valueType,
57
);
0 commit comments