diff --git a/compiler/src/Console/PrepareCommand.php b/compiler/src/Console/PrepareCommand.php index 885e80ca53..42cb964062 100644 --- a/compiler/src/Console/PrepareCommand.php +++ b/compiler/src/Console/PrepareCommand.php @@ -179,7 +179,7 @@ private function buildPreloadScript(): void $vendorDir . '/phpstan/phpdoc-parser/src', ])->exclude([ 'Testing', - ]) as $phpFile) { + ])->sortByName() as $phpFile) { $realPath = $phpFile->getRealPath(); if ($realPath === false) { return;