Skip to content

Commit

Permalink
Fixed MethodReflection withResolvedTypes, toChildOf
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Sep 21, 2023
1 parent 900645a commit 4e459e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MethodReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ protected function withResolvedTypes(TypeVisitor $typeResolver): static
static fn (ParameterReflection $parameter): ParameterReflection => $parameter->withResolvedTypes($typeResolver),
$this->parameters,
);
$method->returnType->withResolvedTypes($typeResolver);
$method->returnType = $method->returnType->withResolvedTypes($typeResolver);

return $method;
}
Expand All @@ -385,7 +385,7 @@ protected function toChildOf(FriendlyReflection $parent): static
: $parameter,
$this->parameters,
);
$method->returnType->toChildOf($parent->returnType);
$method->returnType = $method->returnType->toChildOf($parent->returnType);

return $method;
}
Expand Down

0 comments on commit 4e459e7

Please sign in to comment.