Skip to content

Commit b4c6a25

Browse files
committed
PresenterComponent::redirect() fixed variadic parameter after a61d596
1 parent e49ca71 commit b4c6a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application/UI/PresenterComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public function redirect($code, $destination = NULL, $args = [])
346346
$destination = $code;
347347
$code = NULL;
348348

349-
} elseif (func_num_args() < 4 && !is_array($args)) {
349+
} elseif (func_num_args() > 3 || !is_array($args)) {
350350
$args = array_slice(func_get_args(), 2);
351351
}
352352

0 commit comments

Comments
 (0)