We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e17a72 commit c41d908Copy full SHA for c41d908
1 file changed
psalm-autoload.php
@@ -19,6 +19,8 @@
19
];
20
21
foreach ($directories as $directory) {
22
+ $filesToLoad = [];
23
+
24
$iterator = new RecursiveIteratorIterator(
25
new RecursiveDirectoryIterator(
26
$directory,
@@ -45,6 +47,13 @@
45
47
continue;
46
48
}
49
- require_once $file->getPathname();
50
+ $filesToLoad[] = $file->getPathname();
51
+ }
52
53
+ // Sort files to ensure consistent loading order across operating systems
54
+ sort($filesToLoad);
55
56
+ foreach ($filesToLoad as $file) {
57
+ require_once $file;
58
59
0 commit comments