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) {