Skip to content

Commit

Permalink
Form::render() arguments are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 1, 2016
1 parent 77ffdfb commit c996b4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@ public function beforeRender()
*/
public function render(...$args)
{
if ($args) {
trigger_error('Arguments in ' . __METHOD__ . ' are deprecated.', E_USER_DEPRECATED);
}
$this->beforeRender();
echo $this->getRenderer()->render($this, ...$args);
}
Expand Down

0 comments on commit c996b4c

Please sign in to comment.