Jordi Boggiano преди 7 години
родител
ревизия
c52e8e5656
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Composer/Package/Version/VersionGuesser.php

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

@@ -217,7 +217,7 @@ class VersionGuesser
                     break;
                 }
 
-                // do not compare against other feature branches
+                // do not compare against itself or other feature branches
                 if ($candidate === $branch || !preg_match('{^(' . $nonFeatureBranches . '|master|trunk|default|develop|\d+\..+)$}', $candidate, $match)) {
                     continue;
                 }