Skip to content

Commit

Permalink
fix ReflectionParameter::getDefaultValue() return
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Feb 4, 2024
1 parent eefee84 commit 799e69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReflectionParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function getDeclaringFunction(): ReflectionFunctionAbstract
/**
* {@inheritDoc}
*/
public function getDefaultValue()
public function getDefaultValue(): mixed
{
if (!$this->isDefaultValueAvailable()) {
throw new ReflectionException('Internal error: Failed to retrieve the default value');
Expand Down

0 comments on commit 799e69d

Please sign in to comment.