Skip to content

Commit

Permalink
Update to Psalm 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 25, 2020
1 parent 709a404 commit 23cfad3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .phive/phars.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="php-cs-fixer" version="^2.16" installed="2.16.4" location="./tools/php-cs-fixer" copy="true"/>
<phar name="psalm" version="^3.8" installed="3.18.2" location="./tools/psalm" copy="true"/>
<phar name="psalm" version="^4.0" installed="4.0.1" location="./tools/psalm" copy="true"/>
</phive>
14 changes: 5 additions & 9 deletions .psalm/baseline.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="3.17.2@9e526d9cb569fe4631e6a737bbb7948d05596e3f">
<files psalm-version="4.0.1@b1e2e30026936ef8d5bf6a354d1c3959b6231f44">
<file src="src/CodeCoverage.php">
<ArgumentTypeCoercion occurrences="1">
<code>$unit[0]</code>
Expand Down Expand Up @@ -87,11 +87,6 @@
<EmptyArrayAccess occurrences="1">
<code>$pointer[$path[$i] . $type]</code>
</EmptyArrayAccess>
<PossiblyInvalidArgument occurrences="3">
<code>$paths[$i]</code>
<code>$paths[$i]</code>
<code>$paths[$i]</code>
</PossiblyInvalidArgument>
</file>
<file src="src/Node/Directory.php">
<DocblockTypeContradiction occurrences="4">
Expand Down Expand Up @@ -251,16 +246,17 @@
</PossiblyUndefinedArrayOffset>
</file>
<file src="src/StaticAnalysis/CodeUnitFindingVisitor.php">
<PossiblyInvalidOperand occurrences="1">
<code>$parameter-&gt;var-&gt;name</code>
</PossiblyInvalidOperand>
<PossiblyNullReference occurrences="2">
<code>toString</code>
<code>toString</code>
</PossiblyNullReference>
<RedundantConditionGivenDocblockType occurrences="5">
<RedundantConditionGivenDocblockType occurrences="3">
<code>$node instanceof Function_</code>
<code>$node instanceof Function_</code>
<code>$type instanceof UnionType</code>
<code>assert($node-&gt;namespacedName instanceof Name)</code>
<code>assert($parentNode-&gt;namespacedName instanceof Name)</code>
</RedundantConditionGivenDocblockType>
<UndefinedPropertyFetch occurrences="2">
<code>$node-&gt;namespacedName</code>
Expand Down
3 changes: 2 additions & 1 deletion .psalm/config.xml
Expand Up @@ -3,9 +3,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
resolveFromConfigFile="false"
cacheDirectory=".psalm/cache"
errorBaseline=".psalm/baseline.xml"
totallyTyped="false"
errorBaseline=".psalm/baseline.xml"
>
<projectFiles>
<directory name="src" />
Expand Down
Binary file modified tools/psalm
Binary file not shown.

0 comments on commit 23cfad3

Please sign in to comment.