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 4fc95bd commit 26d11ca
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .phive/phars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<phar name="php-cs-fixer" version="^2.16" installed="2.16.4" location="./tools/php-cs-fixer" copy="true"/>
<phar name="phpdox" version="^0.12" installed="0.12.0" location="./tools/phpdox" copy="true"/>
<phar name="phploc" version="^4.0" installed="4.0.1" location="./tools/phploc" copy="true"/>
<phar name="psalm" version="^3.6" 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="humbug/php-scoper" version="^0.13.2" installed="0.13.5" location="./tools/php-scoper" copy="true"/>
<phar name="roave/backwardcompatibilitycheck" version="^5.0.0" installed="5.0.0" location="./tools/roave-backward-compatibility-check" copy="true"/>
</phive>
43 changes: 28 additions & 15 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
@@ -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/Framework/Assert.php">
<ArgumentTypeCoercion occurrences="2">
<code>$actualElement-&gt;childNodes-&gt;item($i)</code>
Expand Down Expand Up @@ -1205,6 +1205,9 @@
</PossiblyUnusedMethod>
</file>
<file src="src/Framework/TestResult.php">
<ArgumentTypeCoercion occurrences="1">
<code>$test</code>
</ArgumentTypeCoercion>
<DeprecatedClass occurrences="4">
<code>TestListener</code>
<code>TestListener</code>
Expand All @@ -1226,7 +1229,8 @@
<code>$codeCoverage</code>
<code>$topTestSuite</code>
</MissingConstructor>
<PossiblyUndefinedVariable occurrences="1">
<PossiblyUndefinedVariable occurrences="2">
<code>$_timeout</code>
<code>$isAnyCoverageRequired</code>
</PossiblyUndefinedVariable>
<PossiblyUnusedMethod occurrences="17">
Expand All @@ -1252,6 +1256,16 @@
<code>$this-&gt;codeCoverage !== null</code>
<code>$this-&gt;codeCoverage !== null</code>
</RedundantConditionGivenDocblockType>
<UndefinedClass occurrences="2">
<code>Invoker</code>
<code>TimeoutException</code>
</UndefinedClass>
<UndefinedInterfaceMethod occurrences="4">
<code>getSize</code>
<code>getSize</code>
<code>getSize</code>
<code>runBare</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Framework/TestSuite.php">
<ArgumentTypeCoercion occurrences="2">
Expand All @@ -1268,8 +1282,10 @@
<MissingThrowsDocblock occurrences="2">
<code>new PhptTestCase($filename)</code>
</MissingThrowsDocblock>
<PossiblyUndefinedVariable occurrences="1">
<PossiblyUndefinedVariable occurrences="3">
<code>$afterClassMethod</code>
<code>$afterClassMethod</code>
<code>$test</code>
</PossiblyUndefinedVariable>
<PossiblyUnusedMethod occurrences="2">
<code>setGroupDetails</code>
Expand Down Expand Up @@ -1370,11 +1386,6 @@
<code>usesDataProvider</code>
</PossiblyUnusedMethod>
</file>
<file src="src/Runner/TestResultCache.php">
<PossiblyUnusedMethod occurrences="1">
<code>load</code>
</PossiblyUnusedMethod>
</file>
<file src="src/Runner/TestSuiteLoader.php">
<PossiblyUnusedMethod occurrences="1">
<code>reload</code>
Expand Down Expand Up @@ -1508,6 +1519,7 @@
<code>$this-&gt;loader === null</code>
<code>$this-&gt;printer === null</code>
</DocblockTypeContradiction>
<InvalidCatch occurrences="1"/>
<MissingThrowsDocblock occurrences="4">
<code>addFilter</code>
<code>addFilter</code>
Expand All @@ -1517,8 +1529,9 @@
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$loader</code>
</PossiblyNullPropertyAssignmentValue>
<PossiblyUndefinedVariable occurrences="1">
<PossiblyUndefinedVariable occurrences="2">
<code>$whitelistFromConfigurationFile</code>
<code>$whitelistFromOption</code>
</PossiblyUndefinedVariable>
<PossiblyUnusedMethod occurrences="1">
<code>setPrinter</code>
Expand Down Expand Up @@ -1617,14 +1630,14 @@
<PossiblyUnusedMethod occurrences="1">
<code>unregister</code>
</PossiblyUnusedMethod>
<UnusedClosureParam occurrences="1">
<code>$errorString</code>
</UnusedClosureParam>
</file>
<file src="src/Util/FileLoader.php">
<UnresolvableInclude occurrences="1">
<code>include_once $filename</code>
</UnresolvableInclude>
<UnusedParam occurrences="1">
<code>$filename</code>
</UnusedParam>
</file>
<file src="src/Util/Filter.php">
<MissingParamType occurrences="3">
Expand Down Expand Up @@ -1661,6 +1674,9 @@
<MissingParamType occurrences="1">
<code>$json</code>
</MissingParamType>
<UnusedVariable occurrences="1">
<code>$key</code>
</UnusedVariable>
</file>
<file src="src/Util/Log/JUnit.php">
<ArgumentTypeCoercion occurrences="1">
Expand Down Expand Up @@ -1731,9 +1747,6 @@
<code>TeamCity</code>
<code>TeamCity</code>
</PropertyNotSetInConstructor>
<RedundantCondition occurrences="1">
<code>$previous-&gt;getPrevious()</code>
</RedundantCondition>
<UndefinedInterfaceMethod occurrences="7">
<code>getName</code>
<code>getName</code>
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"
cacheDirectory=".psalm/cache"
totallyTyped="false"
checkForThrowsDocblock="true"
Expand Down
Binary file modified tools/psalm
Binary file not shown.

0 comments on commit 26d11ca

Please sign in to comment.