Skip to content

Commit 272a647

Browse files
authored
Merge pull request #170 from kenjis/fix-phpunit-version
chore: fix PHPUnit and coding-standard versions
2 parents 674ee9b + 293c885 commit 272a647

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

composer.json

+2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
"codeigniter4/settings": "^2.0"
2424
},
2525
"require-dev": {
26+
"codeigniter/coding-standard": "1.7.*",
2627
"codeigniter4/devkit": "^1.0",
2728
"codeigniter4/framework": "^4.1",
29+
"phpunit/phpunit": "^9.6",
2830
"rector/rector": "1.1.1"
2931
},
3032
"minimum-stability": "dev",

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)