Skip to content

Commit

Permalink
Merge pull request #21 from conroyp/support-5-5-and-5-6
Browse files Browse the repository at this point in the history
Add support for L5.5 & 5.6
  • Loading branch information
freekmurze authored Aug 31, 2019
2 parents 15b530e + 999eec2 commit 4e57ac2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ErrorPage/ErrorPageViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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
Expand Down

0 comments on commit 4e57ac2

Please sign in to comment.