From 999eec210500ceb812ee59aed15cf1df1750bb59 Mon Sep 17 00:00:00 2001 From: conroyp Date: Sat, 31 Aug 2019 00:01:44 +0200 Subject: [PATCH] Uglify action call to support L5.5 & 5.6 --- src/ErrorPage/ErrorPageViewModel.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ErrorPage/ErrorPageViewModel.php b/src/ErrorPage/ErrorPageViewModel.php index aea1028e..e37c69c2 100644 --- a/src/ErrorPage/ErrorPageViewModel.php +++ b/src/ErrorPage/ErrorPageViewModel.php @@ -96,7 +96,11 @@ public function solutions(): array protected function shareEndpoint() { - return action([ShareReportController::class]); + // In L5.5 and 5.6 `action` doesn't accept callable syntax, so we crash. + // Swap back to the uglier syntax until 5.5 & 5.6 support is removed. + // The same change is not needed for telescope action call above as telescope + // min version is 5.7, so it's not an issue there. + return action('\Facade\Ignition\Http\Controllers\ShareReportController'); } public function report(): array