Skip to content

Commit 4878bb0

Browse files
committed
No longer check additional parameters after variadic
1 parent 0aeaa99 commit 4878bb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/php/lang/reflection/Routine.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public static function pass($reflect, $args) {
9898
foreach ($reflect->getParameters() as $i => $param) {
9999
if ($param->isVariadic()) {
100100
while ($args) $pass[]= array_shift($args);
101+
break;
101102
} else if (isset($args[$param->name])) {
102103
$pass[]= $args[$param->name];
103104
unset($args[$param->name]);

0 commit comments

Comments
 (0)