Skip to content

Commit 293c885

Browse files
committed
chore: update psalm config
1 parent 98ba93e commit 293c885

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

psalm.xml

+3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<?xml version="1.0"?>
22
<psalm
3+
phpVersion="8.1"
34
errorLevel="7"
45
resolveFromConfigFile="true"
56
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
67
xmlns="https://getpsalm.org/schema/config"
78
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
89
autoloader="psalm_autoload.php"
910
cacheDirectory="build/psalm/"
11+
findUnusedBaselineEntry="false"
12+
findUnusedCode="false"
1013
>
1114
<projectFiles>
1215
<directory name="src/" />

psalm_autoload.php

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
foreach ($helperDirs as $dir) {
1313
$dir = __DIR__ . '/' . $dir;
14+
if (! is_dir($dir)) {
15+
continue;
16+
}
17+
1418
chdir($dir);
1519

1620
foreach (glob('*_helper.php') as $filename) {
@@ -19,3 +23,5 @@
1923
require_once $filePath;
2024
}
2125
}
26+
27+
chdir(__DIR__);

0 commit comments

Comments
 (0)