Skip to content

Commit 686374f

Browse files
committed
removed support for PHP 7
1 parent 89fc4bd commit 686374f

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/Forms/Form.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -642,17 +642,8 @@ public function render(...$args): void
642642
*/
643643
public function __toString(): string
644644
{
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-
}
645+
$this->fireRenderEvents();
646+
return $this->getRenderer()->render($this);
656647
}
657648

658649

0 commit comments

Comments
 (0)