Skip to content

Commit dce6176

Browse files
authored
Merge pull request #823 from kukulich/build
Fixed `ReflectionFunctionAbstract::createReturnType()` return type hint
2 parents 89b3a0f + 8131bd0 commit dce6176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reflection/ReflectionFunctionAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public function getTentativeReturnType(): ReflectionNamedType|ReflectionUnionTyp
386386
return $this->createReturnType();
387387
}
388388

389-
private function createReturnType(): ReflectionNamedType|ReflectionUnionType|null
389+
private function createReturnType(): ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null
390390
{
391391
$returnType = $this->node->getReturnType();
392392
assert($returnType instanceof Node\Identifier || $returnType instanceof Node\Name || $returnType instanceof Node\NullableType || $returnType instanceof Node\UnionType || $returnType instanceof Node\IntersectionType || $returnType === null);

0 commit comments

Comments
 (0)