Skip to content

Commit 34d1941

Browse files
committed
Fix contrib logic
1 parent a44f663 commit 34d1941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/src/VersionParser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public static function handleCore($version) {
3131

3232
public static function handleContrib($version) {
3333
list($core, $version) = explode('-', $version, 2);
34-
list($major, $minor) = explode('.', $version);
35-
return ">=$major.$minor,<$version";
34+
list($major) = explode('.', $version);
35+
return ">=$major,<$version";
3636
}
3737

3838
public static function isValid($version) {

0 commit comments

Comments
 (0)