Skip to content

Commit 8b323ef

Browse files
author
Roy
committed
update baselines
1 parent bfba15f commit 8b323ef

2 files changed

Lines changed: 12 additions & 39 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,6 @@ parameters:
220220
count: 1
221221
path: src/PumpStream.php
222222

223-
-
224-
message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#"
225-
count: 1
226-
path: src/Request.php
227-
228-
-
229-
message: "#^Property GuzzleHttp\\\\Psr7\\\\Request\\:\\:\\$requestTarget \\(string\\|null\\) does not accept mixed\\.$#"
230-
count: 1
231-
path: src/Request.php
232-
233223
-
234224
message: "#^Method GuzzleHttp\\\\Psr7\\\\ServerRequest\\:\\:normalizeNestedFileSpec\\(\\) should return array\\<Psr\\\\Http\\\\Message\\\\UploadedFileInterface\\> but returns array\\<int\\|string, array\\<Psr\\\\Http\\\\Message\\\\UploadedFileInterface\\>\\|Psr\\\\Http\\\\Message\\\\UploadedFileInterface\\>\\.$#"
235225
count: 1

psalm-baseline.xml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<files psalm-version="4.x-dev@">
3-
<file src="src/CachingStream.php">
4-
<UndefinedThisPropertyAssignment occurrences="1">
5-
<code>$this-&gt;stream</code>
6-
</UndefinedThisPropertyAssignment>
7-
</file>
8-
<file src="src/DroppingStream.php">
9-
<UndefinedThisPropertyAssignment occurrences="1">
10-
<code>$this-&gt;stream</code>
11-
</UndefinedThisPropertyAssignment>
12-
</file>
133
<file src="src/FnStream.php">
4+
<InvalidAttribute occurrences="1">
5+
<code>\AllowDynamicProperties</code>
6+
</InvalidAttribute>
147
<InvalidFunctionCall occurrences="15">
158
<code>call_user_func($this-&gt;_fn___toString)</code>
169
<code>call_user_func($this-&gt;_fn_close)</code>
@@ -34,16 +27,6 @@
3427
<code>$file</code>
3528
</ParamNameMismatch>
3629
</file>
37-
<file src="src/InflateStream.php">
38-
<UndefinedThisPropertyAssignment occurrences="1">
39-
<code>$this-&gt;stream</code>
40-
</UndefinedThisPropertyAssignment>
41-
</file>
42-
<file src="src/LimitStream.php">
43-
<UndefinedThisPropertyAssignment occurrences="1">
44-
<code>$this-&gt;stream</code>
45-
</UndefinedThisPropertyAssignment>
46-
</file>
4730
<file src="src/MessageTrait.php">
4831
<LessSpecificImplementedReturnType occurrences="7">
4932
<code>MessageInterface</code>
@@ -68,15 +51,18 @@
6851
<code>$filename</code>
6952
<code>$filename</code>
7053
</PossiblyNullArgument>
71-
<UndefinedThisPropertyAssignment occurrences="1">
72-
<code>$this-&gt;stream</code>
73-
</UndefinedThisPropertyAssignment>
7454
</file>
7555
<file src="src/Request.php">
7656
<ParadoxicalCondition occurrences="1">
7757
<code>isset($this-&gt;headerNames['host'])</code>
7858
</ParadoxicalCondition>
7959
</file>
60+
<file src="src/Response.php">
61+
<RedundantCast occurrences="2">
62+
<code>(int) $code</code>
63+
<code>(string) $reasonPhrase</code>
64+
</RedundantCast>
65+
</file>
8066
<file src="src/ServerRequest.php">
8167
<InvalidReturnStatement occurrences="1">
8268
<code>$normalizedFiles</code>
@@ -94,6 +80,9 @@
9480
<InvalidPropertyAssignmentValue occurrences="1">
9581
<code>$this-&gt;stream</code>
9682
</InvalidPropertyAssignmentValue>
83+
<RedundantCast occurrences="1">
84+
<code>(int) $whence</code>
85+
</RedundantCast>
9786
<RedundantPropertyInitializationCheck occurrences="10">
9887
<code>isset($this-&gt;stream)</code>
9988
<code>isset($this-&gt;stream)</code>
@@ -107,12 +96,6 @@
10796
<code>isset($this-&gt;stream)</code>
10897
</RedundantPropertyInitializationCheck>
10998
</file>
110-
<file src="src/StreamDecoratorTrait.php">
111-
<UndefinedThisPropertyAssignment occurrences="2">
112-
<code>$this-&gt;stream</code>
113-
<code>$this-&gt;stream</code>
114-
</UndefinedThisPropertyAssignment>
115-
</file>
11699
<file src="src/Uri.php">
117100
<PossiblyInvalidArgument occurrences="1">
118101
<code>$result</code>

0 commit comments

Comments
 (0)