Skip to content

Commit 98832d3

Browse files
committed
FormMacros::renderFormBegin() and renderFormEnd() trigger E_USER_DEPRECATED
1 parent 570a6ee commit 98832d3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Bridges/FormsLatte/FormMacros.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,15 @@ public function macroInputError(MacroNode $node, PhpWriter $writer)
241241
/** @deprecated */
242242
public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE)
243243
{
244+
trigger_error(__METHOD__ . '() is deprecated, use Nette\Bridges\FormsLatte\Runtime::renderFormBegin()', E_USER_DEPRECATED);
244245
echo Runtime::renderFormBegin($form, $attrs, $withTags);
245246
}
246247

247248

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

0 commit comments

Comments
 (0)