diff --git a/src/Bridges/FormsLatte/FormMacros.php b/src/Bridges/FormsLatte/FormMacros.php index 07bba735c..4ef32f3cc 100644 --- a/src/Bridges/FormsLatte/FormMacros.php +++ b/src/Bridges/FormsLatte/FormMacros.php @@ -25,7 +25,7 @@ * - {inputError name} * - {formContainer name} ... {/formContainer} */ -class FormMacros extends MacroSet +final class FormMacros extends MacroSet { public static function install(Latte\Compiler $compiler): void { diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 8f53c8b4e..206a8dacc 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -623,6 +623,7 @@ public function __toString(): string throw $e; } trigger_error('Exception in ' . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR); + return ''; } }