We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89fc4bd commit 686374fCopy full SHA for 686374f
1 file changed
src/Forms/Form.php
@@ -642,17 +642,8 @@ public function render(...$args): void
642
*/
643
public function __toString(): string
644
{
645
- try {
646
- $this->fireRenderEvents();
647
- return $this->getRenderer()->render($this);
648
-
649
- } catch (\Throwable $e) {
650
- if (func_num_args() || PHP_VERSION_ID >= 70400) {
651
- throw $e;
652
- }
653
- trigger_error('Exception in ' . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR);
654
- return '';
655
+ $this->fireRenderEvents();
+ return $this->getRenderer()->render($this);
656
}
657
658
0 commit comments