Skip to content

Commit

Permalink
Add ArgumentTypeCoercion to psalm baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
wgevaert authored and sebastianbergmann committed Oct 7, 2019
1 parent 4ccaab5 commit da3d769
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
37 changes: 16 additions & 21 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.4.12@86e5e50c1bb492045e70f2ebe1da3cad06e4e9b2">
<files psalm-version="3.5.3@c3e781c4a06cbb17dc32068eb5d6de075f6babdc">
<file src="src/Framework/Assert.php">
<ArgumentTypeCoercion occurrences="2">
<code>$expectedElement-&gt;childNodes-&gt;item($i)</code>
Expand Down Expand Up @@ -83,6 +83,11 @@
<code>"--- Expected\n+++ Actual\n"</code>
</InvalidArgument>
</file>
<file src="src/Framework/DataProviderTestSuite.php">
<ArgumentTypeCoercion occurrences="1">
<code>$className</code>
</ArgumentTypeCoercion>
</file>
<file src="src/Framework/Exception/ExpectationFailedException.php">
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$comparisonFailure</code>
Expand Down Expand Up @@ -135,16 +140,6 @@
<code>\WSDL_CACHE_NONE</code>
</UndefinedConstant>
</file>
<file src="src/Framework/MockObject/Rule/ConsecutiveParameters.php">
<TypeDoesNotContainNull occurrences="1">
<code>$invocation === null</code>
</TypeDoesNotContainNull>
</file>
<file src="src/Framework/MockObject/Rule/Parameters.php">
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>null</code>
</PossiblyNullPropertyAssignmentValue>
</file>
<file src="src/Framework/MockObject/MockBuilder.php">
<ArgumentTypeCoercion occurrences="2">
<code>$this-&gt;type</code>
Expand All @@ -159,6 +154,16 @@
<code>allowsNull</code>
</PossiblyNullReference>
</file>
<file src="src/Framework/MockObject/Rule/ConsecutiveParameters.php">
<TypeDoesNotContainNull occurrences="1">
<code>$invocation === null</code>
</TypeDoesNotContainNull>
</file>
<file src="src/Framework/MockObject/Rule/Parameters.php">
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>null</code>
</PossiblyNullPropertyAssignmentValue>
</file>
<file src="src/Framework/TestCase.php">
<ArgumentTypeCoercion occurrences="2">
<code>$class_name</code>
Expand Down Expand Up @@ -279,11 +284,6 @@
<file src="src/Util/Annotation/DocBlock.php">
<InvalidCatch occurrences="1"/>
</file>
<file src="src/Util/Annotation/RegistryTest.php">
<UndefinedClass occurrences="1">
<code>\ThisClassDoesNotExist</code>
</UndefinedClass>
</file>
<file src="src/Util/Blacklist.php">
<UndefinedClass occurrences="1">
<code>Invoker</code>
Expand Down Expand Up @@ -421,11 +421,6 @@
</PossiblyNullArgument>
</file>
<file src="src/Util/Test.php">
<ArgumentTypeCoercion occurrences="3">
<code>$className</code>
<code>$className</code>
<code>$className</code>
</ArgumentTypeCoercion>
<InvalidScalarArgument occurrences="1">
<code>\array_flip($lineNumbers)</code>
</InvalidScalarArgument>
Expand Down
1 change: 0 additions & 1 deletion src/Framework/DataProviderTestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public function getSize(): int
{
[$className, $methodName] = \explode('::', $this->getName());

/* @psalm-suppress ArgumentTypeCoercion */
return TestUtil::getSize($className, $methodName);
}
}

0 comments on commit da3d769

Please sign in to comment.