Skip to content

Commit be627c4

Browse files
author
Andrey Helldar
authored
Fixed Lumen version detection
1 parent 8a75f39 commit be627c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Support/AppVersion.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function is(string $version, string $comparator = '>='): bool
5757
public function version(): string
5858
{
5959
if (AppHelper::isLumen()) {
60-
preg_match('/.+\((\d+\.\d+\.\d+)\)/', app()->version(), $matches);
60+
preg_match('/.+\((\d+\.\d+|\d+\.\d+\.\d+)\).+/', app()->version(), $matches);
6161

6262
return $matches[1];
6363
}

0 commit comments

Comments
 (0)