From 7d9893223b8360d36eb831ff93d79decb046d186 Mon Sep 17 00:00:00 2001 From: AlexVanderbist Date: Tue, 11 Jan 2022 17:17:12 +0000 Subject: [PATCH] Fix styling --- tests/Views/ViewExceptionMapperTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Views/ViewExceptionMapperTest.php b/tests/Views/ViewExceptionMapperTest.php index f914e72d..3832f74d 100644 --- a/tests/Views/ViewExceptionMapperTest.php +++ b/tests/Views/ViewExceptionMapperTest.php @@ -17,7 +17,8 @@ $this->assertEquals($viewData, $mappedException?->getViewData()); }); -function renderViewAndMapException(string $view, ?array $data = null): ViewException { +function renderViewAndMapException(string $view, ?array $data = null): ViewException +{ try { view($view, $data)->render(); } catch (\Illuminate\View\ViewException $originalViewException) {