Skip to content

Commit 9e40d7a

Browse files
Update Psalm baseline
1 parent c01ef61 commit 9e40d7a

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.psalm/baseline.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.13.1@086b94371304750d1c673315321a55d15fc59015">
2+
<files psalm-version="5.14.1@b9d355e0829c397b9b3b47d0c0ed042a8a70284d">
33
<file src="src/Framework/Assert.php">
44
<ArgumentTypeCoercion>
55
<code><![CDATA[$actualElement->childNodes->item($i)]]></code>
@@ -604,15 +604,29 @@
604604
<code>hasProperty</code>
605605
</MissingThrowsDocblock>
606606
</file>
607+
<file src="src/Framework/Constraint/RegularExpression.php">
608+
<ArgumentTypeCoercion>
609+
<code><![CDATA[$this->pattern]]></code>
610+
</ArgumentTypeCoercion>
611+
</file>
607612
<file src="src/Framework/Constraint/SameSize.php">
608613
<PossiblyNullArgument>
609614
<code><![CDATA[$this->getCountOf($expected)]]></code>
610615
</PossiblyNullArgument>
611616
</file>
612617
<file src="src/Framework/Constraint/StringMatchesFormatDescription.php">
618+
<ArgumentTypeCoercion>
619+
<code>$line</code>
620+
</ArgumentTypeCoercion>
613621
<InvalidArgument>
614622
<code><![CDATA["--- Expected\n+++ Actual\n"]]></code>
615623
</InvalidArgument>
624+
<InvalidReturnStatement>
625+
<code><![CDATA[preg_replace('/\r\n/', "\n", $text)]]></code>
626+
</InvalidReturnStatement>
627+
<InvalidReturnType>
628+
<code>string</code>
629+
</InvalidReturnType>
616630
<MissingParamType>
617631
<code>$text</code>
618632
</MissingParamType>
@@ -1395,6 +1409,9 @@
13951409
</MissingTemplateParam>
13961410
</file>
13971411
<file src="src/Runner/Filter/NameFilterIterator.php">
1412+
<ArgumentTypeCoercion>
1413+
<code><![CDATA[$this->filter]]></code>
1414+
</ArgumentTypeCoercion>
13981415
<MissingTemplateParam>
13991416
<code>NameFilterIterator</code>
14001417
</MissingTemplateParam>
@@ -1501,6 +1518,10 @@
15011518
<PossiblyFalseArgument>
15021519
<code><![CDATA[strrpos($this->arguments['test'], '.')]]></code>
15031520
</PossiblyFalseArgument>
1521+
<PossiblyInvalidOperand>
1522+
<code>$optionName</code>
1523+
<code>$optionName</code>
1524+
</PossiblyInvalidOperand>
15041525
<PossiblyNullArgument>
15051526
<code>$suite</code>
15061527
<code>$suite</code>
@@ -2107,6 +2128,11 @@
21072128
<code>$filter</code>
21082129
</ArgumentTypeCoercion>
21092130
</file>
2131+
<file src="src/Util/RegularExpression.php">
2132+
<ArgumentTypeCoercion>
2133+
<code>$pattern</code>
2134+
</ArgumentTypeCoercion>
2135+
</file>
21102136
<file src="src/Util/Test.php">
21112137
<InvalidScalarArgument>
21122138
<code>array_flip($lineNumbers)</code>
@@ -2187,6 +2213,9 @@
21872213
$e
21882214
);]]></code>
21892215
</MissingThrowsDocblock>
2216+
<PossiblyInvalidArgument>
2217+
<code>preg_replace($variables, $providedData, $annotation)</code>
2218+
</PossiblyInvalidArgument>
21902219
<RedundantConditionGivenDocblockType>
21912220
<code>is_string($value)</code>
21922221
</RedundantConditionGivenDocblockType>

0 commit comments

Comments
 (0)