Skip to content

Commit

Permalink
Merge pull request #7580 from kenjis/fix-psalm_autoload.php
Browse files Browse the repository at this point in the history
chore: [Psalm] workarround for Tests\Support\Controllers\Hello does not exist
  • Loading branch information
kenjis authored Jun 17, 2023
2 parents d827fc9 + 8e5c50e commit eea5087
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions psalm_autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,23 @@
}
}

$dirs = [
'tests/_support/Controllers',
];

foreach ($dirs as $dir) {
$dir = __DIR__ . '/' . $dir;
if (! is_dir($dir)) {
continue;
}

chdir($dir);

foreach (glob('*.php') as $filename) {
$filePath = realpath($dir . '/' . $filename);

require_once $filePath;
}
}

chdir(__DIR__);

0 comments on commit eea5087

Please sign in to comment.