Skip to content
Snippets Groups Projects
Commit 319ba7f3 authored by Kunal Sachdev's avatar Kunal Sachdev Committed by Adam G-H
Browse files

Issue #3276159 by kunal.sachdev, phenaproxima: Add a comment explaining the...

Issue #3276159 by kunal.sachdev, phenaproxima: Add a comment explaining the use of Semver::satisfies() in ReleaseChooser::getMostRecentReleaseInMinor 
parent 22b43bf6
No related branches found
No related tags found
1 merge request!290Issue #3276159: Add a comment explaining what 'if (Semver::satisfies($release->getVersion(), "~$version"))' is checking in \Drupal\automatic_updates\ReleaseChooser::getMostRecentReleaseInMinor
......@@ -72,6 +72,10 @@ class ReleaseChooser {
}
$releases = $this->getInstallableReleases();
foreach ($releases as $release) {
// Checks if the release is in the same minor as the currently installed
// version. For example, if the current version is 9.8.0 then the
// constraint ~9.8.0 (equivalent to >=9.8.0 && <9.9.0) will be used to
// check if the release is in the same minor.
if (Semver::satisfies($release->getVersion(), "~$version")) {
return $release;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment