Merge pull request #241 from Mibew/semver_fix

Loose down semantic versioning expressions
This commit is contained in:
Fedor A. Fetisov 2019-01-23 10:34:07 +03:00 committed by GitHub
commit 88a1b978ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ class DependencyGraph
// Check that version of the dependency satisfied requirements
$version_constrain = new VersionExpression($required_version);
$dependency = $this->getPlugin($dependency_name);
if (!$version_constrain->satisfiedBy(new Version($dependency->getInstalledVersion()))) {
if (!$version_constrain->satisfiedBy(new Version($dependency->getInstalledVersion(), true))) {
trigger_error(
sprintf(
'Plugin "%s" has version incompatible with "%s" requirements!',

View File

@ -268,7 +268,7 @@ class PluginInfo
// Check exact version of the library
$version_constrain = new VersionExpression($required_version);
if (!$version_constrain->satisfiedBy(new Version($system_info[$lib]))) {
if (!$version_constrain->satisfiedBy(new Version($system_info[$lib], true))) {
return true;
}
}