Skip to content

Commit 98d0d22

Browse files
committed
PHP 5.6 syntax
1 parent cc02e72 commit 98d0d22

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Forms/Form.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,9 @@ public function getRenderer()
581581
* Renders form.
582582
* @return void
583583
*/
584-
public function render()
584+
public function render(...$args)
585585
{
586-
$args = func_get_args();
587-
array_unshift($args, $this);
588-
echo call_user_func_array([$this->getRenderer(), 'render'], $args);
586+
echo $this->getRenderer()->render($this, ...$args);
589587
}
590588

591589

0 commit comments

Comments
 (0)