We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b6e1da commit 91ca5adCopy full SHA for 91ca5ad
dev/tests/functional/tests/app/Magento/Upgrade/Test/TestCase/UpgradeSystemTest.php
@@ -81,8 +81,9 @@ public function test(
81
. "(-{$preReleaseVersion}(\\.{$preReleaseVersion})*)?"
82
. "(\\+{$buildVersion}(\\.{$buildVersion})*)?{$suffix}/";
83
84
- if (preg_match($versionPattern, $version, $out)) {
85
- $version = array_shift($out);
+ if (preg_match($versionPattern, $version)) {
+ preg_match("/(.*){$suffix}/", $version, $matches);
86
+ $version = $matches[1];
87
} else {
88
$this->fail(
89
"Provided version format does not comply with semantic versioning specification. Got '{$version}'"
0 commit comments