Skip to content

Commit 34dc0da

Browse files
committed
__toString handles Throwable errors
1 parent 1b4d03a commit 34dc0da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Forms/Form.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,10 @@ public function __toString()
592592
try {
593593
return $this->getRenderer()->render($this);
594594

595+
} catch (\Throwable $e) {
595596
} catch (\Exception $e) {
597+
}
598+
if (isset($e)) {
596599
if (func_num_args()) {
597600
throw $e;
598601
}

0 commit comments

Comments
 (0)