Skip to content

Commit

Permalink
Adds file sorting to Symfony Finder to avoid any system discrepancies…
Browse files Browse the repository at this point in the history
… when generating the files
  • Loading branch information
DerpgonCz committed Dec 21, 2022
1 parent 5438e05 commit a0a19d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opag
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if ($argc <= 2) {
$outputFile = $argv[$argc - 1];
}

$files = Finder::create()->files()->name('*.php')->in($dirs);
$files = Finder::create()->files()->name('*.php')->in($dirs)->sortByName();

foreach ($files as $autoload) {
include_once $autoload->getPathName();
Expand Down

0 comments on commit a0a19d6

Please sign in to comment.