Skip to content

Commit 268ac3a

Browse files
committed
fix(test): also match non-prefixed v versions on check
1 parent 917589e commit 268ac3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function isV30OrAbove(): bool
110110
return true;
111111
}
112112

113-
if (preg_match('/^v(\d+)/', $version, $matches)) {
113+
if (preg_match('/^v?(\d+)/', $version, $matches)) {
114114
$majorVersion = (int) $matches[1];
115115
return $majorVersion >= 30;
116116
}

0 commit comments

Comments
 (0)