Skip to content

Commit 663f1b1

Browse files
Update tools
1 parent 957781f commit 663f1b1

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

.phive/phars.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<phar name="php-cs-fixer" version="^2.16" installed="2.18.2" location="./tools/php-cs-fixer" copy="true"/>
55
<phar name="phpdox" version="^0.12" installed="0.12.0" location="./tools/phpdox" copy="true"/>
66
<phar name="phploc" version="^4.0" installed="4.0.1" location="./tools/phploc" copy="true"/>
7-
<phar name="psalm" version="^4.0" installed="4.4.1" location="./tools/psalm" copy="true"/>
7+
<phar name="psalm" version="^4.0" installed="4.5.2" location="./tools/psalm" copy="true"/>
88
<phar name="humbug/php-scoper" version="^0.13.9" installed="0.14.0" location="./tools/php-scoper" copy="true"/>
99
<phar name="roave/backwardcompatibilitycheck" version="^5.0.0" installed="5.0.0" location="./tools/roave-backward-compatibility-check" copy="true"/>
1010
<phar name="composer" version="^2.0.3" installed="2.0.9" location="./tools/composer" copy="true"/>

.psalm/baseline.xml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,7 @@
191191
<code>static::assertThat($haystack, $constraint, $message)</code>
192192
<code>static::assertThat($haystack, $constraint, $message)</code>
193193
</MissingThrowsDocblock>
194-
<PossiblyInvalidArgument occurrences="3">
195-
<code>$expected</code>
196-
<code>$expected</code>
194+
<PossiblyInvalidArgument occurrences="1">
197195
<code>$subset</code>
198196
</PossiblyInvalidArgument>
199197
<RedundantCondition occurrences="1">
@@ -597,6 +595,11 @@
597595
<code>$t-&gt;getPrevious()</code>
598596
</PossiblyNullArgument>
599597
</file>
598+
<file src="src/Framework/IncompleteTestCase.php">
599+
<NonInvariantDocblockPropertyType occurrences="1">
600+
<code>$backupGlobals</code>
601+
</NonInvariantDocblockPropertyType>
602+
</file>
600603
<file src="src/Framework/MockObject/Builder/Identity.php">
601604
<MissingReturnType occurrences="1">
602605
<code>id</code>
@@ -744,6 +747,11 @@
744747
<PossiblyNullReference occurrences="1">
745748
<code>allowsNull</code>
746749
</PossiblyNullReference>
750+
<UndefinedMethod occurrences="3">
751+
<code>getName</code>
752+
<code>getName</code>
753+
<code>getName</code>
754+
</UndefinedMethod>
747755
</file>
748756
<file src="src/Framework/MockObject/MockObject.php">
749757
<MissingParamType occurrences="1">
@@ -842,6 +850,11 @@
842850
<code>invoke</code>
843851
</MissingReturnType>
844852
</file>
853+
<file src="src/Framework/SkippedTestCase.php">
854+
<NonInvariantDocblockPropertyType occurrences="1">
855+
<code>$backupGlobals</code>
856+
</NonInvariantDocblockPropertyType>
857+
</file>
845858
<file src="src/Framework/TestBuilder.php">
846859
<MissingParamType occurrences="1">
847860
<code>$data</code>
@@ -1029,6 +1042,11 @@
10291042
<code>null === $this-&gt;beStrictAboutChangesToGlobalState &amp;&amp; is_bool($beStrictAboutChangesToGlobalState)</code>
10301043
</RedundantConditionGivenDocblockType>
10311044
</file>
1045+
<file src="src/Framework/WarningTestCase.php">
1046+
<NonInvariantDocblockPropertyType occurrences="1">
1047+
<code>$backupGlobals</code>
1048+
</NonInvariantDocblockPropertyType>
1049+
</file>
10321050
<file src="src/Runner/DefaultTestResultCache.php">
10331051
<MissingClosureReturnType occurrences="1">
10341052
<code>static function () use ($cacheData) {</code>
@@ -1043,6 +1061,9 @@
10431061
<MissingReturnType occurrences="1">
10441062
<code>doAccept</code>
10451063
</MissingReturnType>
1064+
<UndefinedInterfaceMethod occurrences="1">
1065+
<code>current</code>
1066+
</UndefinedInterfaceMethod>
10461067
</file>
10471068
<file src="src/Runner/Filter/NameFilterIterator.php">
10481069
<PropertyNotSetInConstructor occurrences="2">
@@ -1052,6 +1073,9 @@
10521073
<RedundantPropertyInitializationCheck occurrences="1">
10531074
<code>$accepted &amp;&amp; isset($this-&gt;filterMax)</code>
10541075
</RedundantPropertyInitializationCheck>
1076+
<UndefinedInterfaceMethod occurrences="1">
1077+
<code>current</code>
1078+
</UndefinedInterfaceMethod>
10551079
</file>
10561080
<file src="src/Runner/Hook/TestListenerAdapter.php">
10571081
<DeprecatedInterface occurrences="1">
@@ -1542,6 +1566,9 @@
15421566
</RedundantConditionGivenDocblockType>
15431567
</file>
15441568
<file src="src/Util/Test.php">
1569+
<InvalidScalarArgument occurrences="1">
1570+
<code>array_flip($lineNumbers)</code>
1571+
</InvalidScalarArgument>
15451572
<MissingReturnType occurrences="1">
15461573
<code>sanitizeVersionNumber</code>
15471574
</MissingReturnType>

tools/psalm

46.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)