Fix 5.3 support
parent
bee91155a1
commit
5ef398ebb9
|
@ -252,7 +252,7 @@ class VersionGuesser
|
||||||
|
|
||||||
// sort numeric branches below named ones, to make sure if the branch has the same distance from main and 1.10 and 1.9 for example, main is picked
|
// sort numeric branches below named ones, to make sure if the branch has the same distance from main and 1.10 and 1.9 for example, main is picked
|
||||||
// and sort using natural sort so that 1.10 will appear before 1.9
|
// and sort using natural sort so that 1.10 will appear before 1.9
|
||||||
rsort($branches, SORT_NATURAL);
|
rsort($branches, defined('SORT_NATURAL') ? SORT_NATURAL : SORT_REGULAR);
|
||||||
|
|
||||||
foreach ($branches as $candidate) {
|
foreach ($branches as $candidate) {
|
||||||
// do not compare against itself or other feature branches
|
// do not compare against itself or other feature branches
|
||||||
|
|
Loading…
Reference in New Issue