Skip to content

Commit

Permalink
PhpParameterReflection - remove unnecessary code that could cause pot…
Browse files Browse the repository at this point in the history
…ential craashes
  • Loading branch information
ondrejmirtes committed Jun 11, 2020
1 parent 1bb3a99 commit a7de232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reflection/Php/PhpParameterReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getType(): Type
$this->type = TypehintHelper::decideTypeFromReflection(
$this->reflection->getType(),
$phpDocType,
$this->reflection->getDeclaringClass() !== null ? $this->reflection->getDeclaringClass()->getName() : null,
null,
$this->isVariadic()
);
}
Expand Down

0 comments on commit a7de232

Please sign in to comment.