Skip to content

Commit 623943a

Browse files
committed
Even more deterministic
1 parent adbc565 commit 623943a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extractor/extract.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,16 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9191
}
9292
$finder = new Finder();
9393
$finder->files()->in($srcDir)->name('*.stub.php')
94-
->exclude('ext/skeleton');
94+
->exclude('ext/skeleton')
95+
->sortByName();
9596

9697
$addClasses = [];
9798
$addFunctions = [];
9899
foreach ($finder as $file) {
99100
$stubPath = $file->getRealPath();
100101
[$tmpClasses, $tmpFunctions] = $this->extractStub($stubPath, $file->getRelativePathname(), $isUpdate, $updateFrom, $updateTo);
102+
ksort($tmpClasses);
103+
ksort($tmpFunctions);
101104
foreach ($tmpClasses as $className => $fileName) {
102105
if (array_key_exists($className, $addClasses)) {
103106
throw new \Exception('Duplicate class ' . $className);

0 commit comments

Comments
 (0)