Skip to content

Commit

Permalink
fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 15, 2024
1 parent 3cd467d commit 2fb0217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReflectionParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function canBePassedByValue(): bool
/**
* @inheritDoc
*/
public function getClass(): \ReflectionClass
public function getClass(): ?\ReflectionClass
{
$parameterType = $this->parameterNode->type;
if ($parameterType instanceof Name) {
Expand Down Expand Up @@ -228,7 +228,7 @@ public function getDeclaringClass(): ?\ReflectionClass
/**
* {@inheritDoc}
*/
public function getDeclaringFunction(): \ReflectionFunction
public function getDeclaringFunction(): ReflectionFunctionAbstract
{
return $this->declaringFunction;
}
Expand Down

0 comments on commit 2fb0217

Please sign in to comment.