Skip to content

Commit ef42cf3

Browse files
authored
Merge pull request #72 from cakephp/2.x-stan-update
2.x: stan update
2 parents 87e9fe5 + 25f545b commit ef42cf3

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.phive/phars.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="phpstan" version="1.10.14" installed="1.10.14" location="./tools/phpstan" copy="false"/>
4-
<phar name="psalm" version="5.10.0" installed="5.10.0" location="./tools/psalm" copy="false"/>
5-
</phive>
3+
<phar name="phpstan" version="1.10.56" installed="1.10.56" location="./tools/phpstan" copy="false"/>
4+
<phar name="psalm" version="5.20.0" installed="5.20.0" location="./tools/psalm" copy="false"/>
5+
</phive>

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
],
5454
"stan-tests": "phpstan.phar analyze -c tests/phpstan.neon",
5555
"stan-baseline": "phpstan.phar --generate-baseline",
56+
"psalm-baseline": "tools/psalm --set-baseline=psalm-baseline.xml",
5657
"stan-setup": "phive install",
5758
"test": "phpunit"
5859
}

psalm-baseline.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="4.x-dev@">
2+
<files psalm-version="5.20.0@3f284e96c9d9be6fe6b15c79416e1d1903dcfef4">
33
<file src="src/Plugin.php">
4-
<InvalidArgument occurrences="1">
5-
<code>$pathMap</code>
6-
</InvalidArgument>
4+
<RiskyTruthyFalsyComparison>
5+
<code>!$primaryNs</code>
6+
<code>$root</code>
7+
</RiskyTruthyFalsyComparison>
78
</file>
89
</files>

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xmlns="https://getpsalm.org/schema/config"
1010
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
11+
errorBaseline="psalm-baseline.xml"
1112
>
1213
<projectFiles>
1314
<directory name="src" />

0 commit comments

Comments
 (0)