Skip to content

Commit f41cedd

Browse files
committed
Fix wrong argument type passed to LogicException constructor
1 parent 6741943 commit f41cedd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Parameters/ParameterReflection.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,11 @@ private static function analyzeDefaultValue(ReflectionParameter $reflection)
216216
try {
217217
return $reflection->getDefaultValue();
218218
} catch (ReflectionException $exception) {
219-
throw new LogicException('Failed to get parameter default value. This should never happen.',
220-
$exception);
219+
throw new LogicException(
220+
'Failed to get parameter default value. This should never happen.',
221+
0,
222+
$exception
223+
);
221224
}
222225
}
223226

0 commit comments

Comments
 (0)