Skip to content

Commit b78d395

Browse files
More fixes
1 parent 34e979b commit b78d395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Analyser/MutatingScope.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3125,7 +3125,7 @@ public function enterClassMethod(
31253125
$this->getParameterAttributes($classMethod),
31263126
$this->transformStaticType($this->getFunctionType($classMethod->returnType, false, false)),
31273127
$phpDocReturnType !== null ? $this->transformStaticType(TemplateTypeHelper::toArgument($phpDocReturnType)) : null,
3128-
$throwType,
3128+
$throwType !== null ? $this->transformStaticType(TemplateTypeHelper::toArgument($throwType)) : null,
31293129
$deprecatedDescription,
31303130
$isDeprecated,
31313131
$isInternal,
@@ -3212,7 +3212,7 @@ public function enterPropertyHook(
32123212
$this->getParameterAttributes($hook),
32133213
$realReturnType,
32143214
$phpDocReturnType,
3215-
$throwType,
3215+
$throwType !== null ? $this->transformStaticType(TemplateTypeHelper::toArgument($throwType)) : null,
32163216
$deprecatedDescription,
32173217
$isDeprecated,
32183218
false,

0 commit comments

Comments
 (0)