Skip to content

Commit

Permalink
#195 - stop some parameters getting counted twice
Browse files Browse the repository at this point in the history
  • Loading branch information
TRPB committed Sep 17, 2021
1 parent 3e9a854 commit 3249d52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dice.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ private function getParams(\ReflectionMethod $method, array $rule) {
for ($i = 0; $i < count($args); $i++) {
if (call_user_func('is_' . $param->getType()->getName(), $args[$i])) {
$parameters[] = array_splice($args, $i, 1)[0];
break;
}
}
}
Expand Down

0 comments on commit 3249d52

Please sign in to comment.