Skip to content

Commit 1cdd278

Browse files
authored
Merge pull request #42 from codeigniter4/chdir
Psalm: Fix Autoload Logic
2 parents 0a5ea5d + 0488f29 commit 1cdd278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Template/psalm_autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
];
1111

1212
foreach ($helperDirs as $dir) {
13+
$dir = __DIR__ . '/' . $dir;
1314
if (! is_dir($dir)) {
1415
continue;
1516
}
1617

17-
$dir = __DIR__ . '/' . $dir;
1818
chdir($dir);
1919

2020
foreach (glob('*_helper.php') as $filename) {

0 commit comments

Comments
 (0)