Skip to content

Commit

Permalink
Fix compatibility for newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
eudaldca committed Mar 2, 2023
1 parent 4f8ef66 commit aff80e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EditoraServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function register()
$this->app['router']->aliasMiddleware('editoraAuth', EditoraAuth::class);

$appExceptionHandler = $this->app->make(ExceptionHandlerContract::class);
if(app()->version() < 7) {
if(version_compare(app()->version(), 7, "<")) {
$this->app->singleton(
ExceptionHandlerContract::class,
function ($app) use ($appExceptionHandler) {
Expand Down

0 comments on commit aff80e5

Please sign in to comment.