1
0
Fork 0

Fix 5.3 support

pull/9026/head
Jordi Boggiano 2020-06-26 16:58:02 +02:00
parent bee91155a1
commit 5ef398ebb9
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -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
// 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) {
// do not compare against itself or other feature branches