Skip to content

Commit 59254d8

Browse files
author
Greg Bowler
committed
Allow any version to pass through "*", even malformed ones
1 parent 4141eff commit 59254d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Requirement.php

+4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ protected function getVersionFromVersionString(string $string):string {
8686
}
8787

8888
protected function isVersionStringValid(string $versionInstalled):bool {
89+
if($this->version === "*") {
90+
return true;
91+
}
92+
8993
return Semver::satisfies($versionInstalled, $this->version);
9094
}
9195
}

0 commit comments

Comments
 (0)