diff --git a/src/Parameters/ParameterReflection.php b/src/Parameters/ParameterReflection.php index fb0020b..ff67503 100644 --- a/src/Parameters/ParameterReflection.php +++ b/src/Parameters/ParameterReflection.php @@ -216,8 +216,11 @@ private static function analyzeDefaultValue(ReflectionParameter $reflection) try { return $reflection->getDefaultValue(); } catch (ReflectionException $exception) { - throw new LogicException('Failed to get parameter default value. This should never happen.', - $exception); + throw new LogicException( + 'Failed to get parameter default value. This should never happen.', + 0, + $exception + ); } }