Avoid skipping feature branch detection if no branch-alias is defined at all

main
Jordi Boggiano 4 years ago
parent 70f23e42f3
commit 0d2c2c044a
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -231,7 +231,7 @@ class VersionGuesser
// ignore feature branches if they have no branch-alias or self.version is used
// and find the branch they came from to use as a version instead
if ((isset($packageConfig['extra']['branch-alias']) && !isset($packageConfig['extra']['branch-alias'][$version]))
if (!isset($packageConfig['extra']['branch-alias'][$version])
|| strpos(json_encode($packageConfig), '"self.version"')
) {
$branch = preg_replace('{^dev-}', '', $version);

Loading…
Cancel
Save