Skip to content

Commit 5db4f7d

Browse files
authored
Update LaravelDebugbar.php (#1391)
Fix Lumen / Illuminate 9 version detection
1 parent e3c7995 commit 5db4f7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LaravelDebugbar.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ public function __construct($app = null)
103103
$this->app = $app;
104104
$this->version = $app->version();
105105
$this->is_lumen = Str::contains($this->version, 'Lumen');
106+
if ($this->is_lumen) {
107+
$this->version = Str::betweenFirst($app->version(), '(', ')');
108+
}
106109
}
107110

108111
/**

0 commit comments

Comments
 (0)