Skip to content

Commit 452941e

Browse files
Updated static analysis & phpunit config files
1 parent 45c399f commit 452941e

File tree

3 files changed

+15
-28
lines changed

3 files changed

+15
-28
lines changed

phpstan.neon.dist

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
includes:
2-
- vendor/phpstan/phpstan-strict-rules/rules.neon
3-
41
parameters:
52
level: max
6-
paths: [src]
3+
paths: [./src]
4+
tmpDir: ./build/cache/phpstan

phpunit.xml.dist

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
4+
bootstrap="./vendor/autoload.php"
5+
cacheResultFile="./build/cache/phpunit.result.cache"
56
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
beStrictAboutCoversAnnotation="true"
8-
beStrictAboutOutputDuringTests="true"
9-
beStrictAboutTestsThatDoNotTestAnything="false"
10-
beStrictAboutTodoAnnotatedTests="true"
117
colors="true"
12-
verbose="true"
13-
executionOrder="default"
8+
failOnRisky="true"
9+
failOnWarning="true"
1410
>
1511
<testsuites>
1612
<testsuite name="PHP Library Starter Test Suite">
1713
<directory>./tests/</directory>
1814
</testsuite>
1915
</testsuites>
2016

21-
<filter>
22-
<whitelist processUncoveredFilesFromWhitelist="true">
17+
<coverage processUncoveredFiles="true">
18+
<include>
2319
<directory suffix=".php">src</directory>
24-
</whitelist>
25-
</filter>
20+
</include>
21+
</coverage>
2622
</phpunit>

psalm.xml.dist

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
<?xml version="1.0"?>
22
<psalm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xmlns="https://getpsalm.org/schema/config"
4-
name="Psalm for PHP Library Starter"
5-
useDocblockTypes="true"
6-
errorLevel="3"
7-
strictBinaryOperands="false"
8-
rememberPropertyAssignmentsAfterCall="true"
9-
checkForThrowsDocblock="false"
10-
throwExceptionOnError="0"
11-
ensureArrayStringOffsetsExist="true"
12-
ensureArrayIntOffsetsExist="false"
13-
resolveFromConfigFile="true"
144
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
5+
name="Psalm for PHP Library Starter"
6+
totallyTyped="true"
7+
cacheDirectory="./build/cache/psalm"
158
>
169
<projectFiles>
17-
<directory name="src"/>
10+
<directory name="./src"/>
1811
<ignoreFiles>
19-
<directory name="vendor"/>
12+
<directory name="./vendor"/>
2013
</ignoreFiles>
2114
</projectFiles>
2215
</psalm>

0 commit comments

Comments
 (0)