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 30fb2c7 commit abd18bfCopy full SHA for abd18bf
rules/DowngradePhp80/Reflection/DefaultParameterValueResolver.php
@@ -25,14 +25,14 @@ public function resolveFromParameterReflection(ParameterReflection $parameterRef
25
return null;
26
}
27
28
- if (! $defaultValueType instanceof ConstantType) {
+ if (! $defaultValueType->isConstantValue()->yes()) {
29
throw new ShouldNotHappenException();
30
31
32
return $this->resolveValueFromType($defaultValueType);
33
34
35
- private function resolveValueFromType(ConstantType $constantType): ConstFetch | Expr
+ private function resolveValueFromType(Type $constantType): ConstFetch | Expr
36
{
37
if ($constantType instanceof ConstantBooleanType) {
38
return $this->resolveConstantBooleanType($constantType);
0 commit comments