Skip to content

Commit eea5087

Browse files
authored
Merge pull request #7580 from kenjis/fix-psalm_autoload.php
chore: [Psalm] workarround for Tests\Support\Controllers\Hello does not exist
2 parents d827fc9 + 8e5c50e commit eea5087

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

psalm_autoload.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,23 @@
2323
}
2424
}
2525

26+
$dirs = [
27+
'tests/_support/Controllers',
28+
];
29+
30+
foreach ($dirs as $dir) {
31+
$dir = __DIR__ . '/' . $dir;
32+
if (! is_dir($dir)) {
33+
continue;
34+
}
35+
36+
chdir($dir);
37+
38+
foreach (glob('*.php') as $filename) {
39+
$filePath = realpath($dir . '/' . $filename);
40+
41+
require_once $filePath;
42+
}
43+
}
44+
2645
chdir(__DIR__);

0 commit comments

Comments
 (0)