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