Skip to content

Commit

Permalink
Merge pull request #51 from branchzero/master
Browse files Browse the repository at this point in the history
Fix Compatible Problem With Lumen 5.5
  • Loading branch information
ovanschie authored Sep 25, 2017
2 parents 264f4a2 + a72438b commit f77df55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpcacheServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function register()
// config
$this->mergeConfigFrom(__DIR__.'/../config/opcache.php', 'opcache');

if (str_contains($this->app->version(), 'Lumen')) {
if (str_contains($this->app->version(), 'Lumen') && ! property_exists($this->app, 'router')) {
$router = $this->app;
} else {
$router = $this->app->router;
Expand Down

0 comments on commit f77df55

Please sign in to comment.