From d66f93292e7d73571f9279e5ff75d9bb5e4d2e74 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 23 Oct 2023 17:43:14 +0900 Subject: [PATCH] chore: update psalm_autoload.php --- psalm_autoload.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/psalm_autoload.php b/psalm_autoload.php index ba1bf17..4c33092 100644 --- a/psalm_autoload.php +++ b/psalm_autoload.php @@ -11,6 +11,10 @@ foreach ($helperDirs as $dir) { $dir = __DIR__ . '/' . $dir; + if (! is_dir($dir)) { + continue; + } + chdir($dir); foreach (glob('*_helper.php') as $filename) { @@ -19,3 +23,5 @@ require_once $filePath; } } + +chdir(__DIR__);