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 1680f27 commit ddb0af0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="php-cs-fixer" version="^2.15" installed="2.16.4" location="./tools/php-cs-fixer" copy="true"/>
<phar name="psalm" version="^3.2" installed="3.18.2" location="./tools/psalm" copy="true"/>
<phar name="psalm" version="^4.0" installed="4.0.1" location="./tools/psalm" copy="true"/>
<phar name="roave/backwardcompatibilitycheck" version="^5.0.0" installed="5.0.0" location="./tools/roave-backward-compatibility-check" copy="true"/>
</phive>
8 changes: 1 addition & 7 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="3.16@d03e5ef057d6adc656c0ff7e166c50b73b4f48f3">
<files psalm-version="4.0.1@b1e2e30026936ef8d5bf6a354d1c3959b6231f44">
<file src="src/ReflectionMapper.php">
<InvalidCast occurrences="1">
<code>$returnType</code>
</InvalidCast>
<MixedArgument occurrences="1">
<code>$returnType instanceof ReflectionUnionType</code>
</MixedArgument>
<MixedAssignment occurrences="1">
<code>$type</code>
</MixedAssignment>
<RedundantConditionGivenDocblockType occurrences="1">
<code>assert($returnType instanceof ReflectionUnionType)</code>
</RedundantConditionGivenDocblockType>
Expand Down
1 change: 1 addition & 0 deletions .psalm/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
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"
errorBaseline=".psalm/baseline.xml"
totallyTyped="true"
>
Expand Down
Binary file modified tools/psalm
Binary file not shown.

0 comments on commit ddb0af0

Please sign in to comment.