diff --git a/Dice.php b/Dice.php index b75299b..dbd0336 100644 --- a/Dice.php +++ b/Dice.php @@ -248,6 +248,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; } } }