Skip to content

Commit

Permalink
RecursiveDirectoryIterator don't obtain some order of the file list.
Browse files Browse the repository at this point in the history
RecursiveDirectoryIterator shouldn't return a sorted list and haven't to do it be direct. But migration script logic requires sorted list of the Version*.php files for correct working.
  • Loading branch information
drefixs committed Nov 10, 2015
1 parent 68cc7bf commit ed95c05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Doctrine/DBAL/Migrations/Finder/RecursiveRegexFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ private function getMatches($iteratorFilesMatch)
foreach ($iteratorFilesMatch as $file) {
$files[] = $file[0];
}

sort($files);

return $files;
}
Expand Down

0 comments on commit ed95c05

Please sign in to comment.