소스 검색

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

Jordi Boggiano 5 년 전
부모
커밋
0d2c2c044a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);