Skip to content

Commit 3fcafb7

Browse files
Update to Psalm 4
1 parent 531bfd6 commit 3fcafb7

File tree

4 files changed

+49
-43
lines changed

4 files changed

+49
-43
lines changed

.phive/phars.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
33
<phar name="php-cs-fixer" version="^2.16" installed="2.16.4" location="./tools/php-cs-fixer" copy="true"/>
4-
<phar name="psalm" version="^3.8" installed="3.18.2" location="./tools/psalm" copy="true"/>
4+
<phar name="psalm" version="^4.0" installed="4.0.1" location="./tools/psalm" copy="true"/>
55
<phar name="roave/backwardcompatibilitycheck" version="^5.0.0" installed="5.0.0" location="./tools/roave-backward-compatibility-check" copy="true"/>
66
</phive>

.psalm/baseline.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<files psalm-version="4.0.1@b1e2e30026936ef8d5bf6a354d1c3959b6231f44">
3+
<file src="src/Chunk.php">
4+
<DocblockTypeContradiction occurrences="1">
5+
<code>$line instanceof Line</code>
6+
</DocblockTypeContradiction>
7+
</file>
8+
<file src="src/Differ.php">
9+
<DocblockTypeContradiction occurrences="2">
10+
<code>is_array($from)</code>
11+
<code>is_array($to)</code>
12+
</DocblockTypeContradiction>
13+
<MissingParamType occurrences="2">
14+
<code>$input</code>
15+
<code>$line</code>
16+
</MissingParamType>
17+
<RedundantConditionGivenDocblockType occurrences="1">
18+
<code>null === $outputBuilder</code>
19+
</RedundantConditionGivenDocblockType>
20+
</file>
21+
<file src="src/Exception/ConfigurationException.php">
22+
<MissingParamType occurrences="1">
23+
<code>$value</code>
24+
</MissingParamType>
25+
</file>
26+
<file src="src/Output/StrictUnifiedDiffOutputBuilder.php">
27+
<MissingParamType occurrences="2">
28+
<code>$output</code>
29+
<code>$output</code>
30+
</MissingParamType>
31+
<MissingPropertyType occurrences="1">
32+
<code>$default</code>
33+
</MissingPropertyType>
34+
<PropertyNotSetInConstructor occurrences="1">
35+
<code>$changed</code>
36+
</PropertyNotSetInConstructor>
37+
</file>
38+
<file src="src/Output/UnifiedDiffOutputBuilder.php">
39+
<MissingParamType occurrences="2">
40+
<code>$output</code>
41+
<code>$output</code>
42+
</MissingParamType>
43+
</file>
44+
</files>

.psalm/config.xml

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,17 @@
11
<?xml version="1.0"?>
22
<psalm
3-
totallyTyped="false"
4-
cacheDirectory=".psalm/cache"
53
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
64
xmlns="https://getpsalm.org/schema/config"
75
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
6+
resolveFromConfigFile="false"
7+
cacheDirectory=".psalm/cache"
8+
totallyTyped="false"
9+
errorBaseline=".psalm/baseline.xml"
810
>
911
<projectFiles>
1012
<directory name="src" />
1113
<ignoreFiles>
1214
<directory name="vendor" />
1315
</ignoreFiles>
1416
</projectFiles>
15-
16-
<issueHandlers>
17-
<LessSpecificReturnType errorLevel="info" />
18-
19-
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
20-
21-
<DeprecatedMethod errorLevel="info" />
22-
<DeprecatedProperty errorLevel="info" />
23-
<DeprecatedClass errorLevel="info" />
24-
<DeprecatedConstant errorLevel="info" />
25-
<DeprecatedFunction errorLevel="info" />
26-
<DeprecatedInterface errorLevel="info" />
27-
<DeprecatedTrait errorLevel="info" />
28-
29-
<InternalMethod errorLevel="info" />
30-
<InternalProperty errorLevel="info" />
31-
<InternalClass errorLevel="info" />
32-
33-
<MissingClosureReturnType errorLevel="info" />
34-
<MissingReturnType errorLevel="info" />
35-
<MissingPropertyType errorLevel="info" />
36-
<InvalidDocblock errorLevel="info" />
37-
<MisplacedRequiredParam errorLevel="info" />
38-
39-
<PropertyNotSetInConstructor errorLevel="info" />
40-
<MissingConstructor errorLevel="info" />
41-
<MissingClosureParamType errorLevel="info" />
42-
<MissingParamType errorLevel="info" />
43-
44-
<RedundantCondition errorLevel="info" />
45-
46-
<DocblockTypeContradiction errorLevel="info" />
47-
<RedundantConditionGivenDocblockType errorLevel="info" />
48-
49-
<UnresolvableInclude errorLevel="info" />
50-
51-
<RawObjectIteration errorLevel="info" />
52-
53-
<InvalidStringClass errorLevel="info" />
54-
</issueHandlers>
5517
</psalm>

tools/psalm

64.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)