Skip to content

Commit

Permalink
FormMacros::renderFormBegin() and renderFormEnd() trigger E_USER_DEPR…
Browse files Browse the repository at this point in the history
…ECATED
  • Loading branch information
dg committed Jun 7, 2016
1 parent 570a6ee commit 98832d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Bridges/FormsLatte/FormMacros.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,15 @@ public function macroInputError(MacroNode $node, PhpWriter $writer)
/** @deprecated */
public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE)
{
trigger_error(__METHOD__ . '() is deprecated, use Nette\Bridges\FormsLatte\Runtime::renderFormBegin()', E_USER_DEPRECATED);
echo Runtime::renderFormBegin($form, $attrs, $withTags);
}


/** @deprecated */
public static function renderFormEnd(Form $form, $withTags = TRUE)
{
trigger_error(__METHOD__ . '() is deprecated, use Nette\Bridges\FormsLatte\Runtime::renderFormEnd()', E_USER_DEPRECATED);
echo Runtime::renderFormEnd($form, $withTags);
}

Expand Down

0 comments on commit 98832d3

Please sign in to comment.