Browse Source

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

Jordi Boggiano 5 years ago
parent
commit
0d2c2c044a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Package/Version/VersionGuesser.php

+ 1 - 1
src/Composer/Package/Version/VersionGuesser.php

@@ -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);