CodeIgniter4/psalm_autoload.php
kenjis a746a2fe2a
fix: restore current directory
baseline.xml was created in system/Helpers/.
2022-11-17 17:13:34 +09:00

27 lines
420 B
PHP

<?php
declare(strict_types=1);
require __DIR__ . '/system/Test/bootstrap.php';
$helperDirs = [
'system/Helpers',
];
foreach ($helperDirs as $dir) {
$dir = __DIR__ . '/' . $dir;
if (! is_dir($dir)) {
continue;
}
chdir($dir);
foreach (glob('*_helper.php') as $filename) {
$filePath = realpath($dir . '/' . $filename);
require_once $filePath;
}
}
chdir(__DIR__);