Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit e3dc78f

Browse files
committed
Merge pull request #125 from aft-christophe/master
PHP 7 - Php Renderer - Catching Error - Bug fix
2 parents 92e5533 + b0f159d commit e3dc78f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Renderer/PhpRenderer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,10 @@ public function render($nameOrModel, $values = null)
504504
ob_start();
505505
$includeReturn = include $this->__file;
506506
$this->__content = ob_get_clean();
507-
} catch (\Exception $ex) {
507+
} catch (\Throwable $ex) {
508+
ob_end_clean();
509+
throw $ex;
510+
} catch (\Exception $ex) { // @TODO clean up once PHP 7 requirement is enforced
508511
ob_end_clean();
509512
throw $ex;
510513
}

0 commit comments

Comments
 (0)