Skip to content

Commit 364652d

Browse files
committed
adjust to new phpstan version
1 parent 9b8d8f7 commit 364652d

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
- name: PHP-CS-Fixer
3434
uses: docker://oskarstark/php-cs-fixer-ga
3535
with:
36-
args: --dry-run --diff-format udiff
36+
args: --dry-run
File renamed without changes.

phpstan-baseline.neon

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ parameters:
1111
path: src/Authentication/Header.php
1212

1313
-
14-
message: "#^Property Http\\\\Message\\\\Authentication\\\\QueryParam\\:\\:\\$params type has no value type specified in iterable type array\\.$#"
14+
message: "#The Http\\\\Message\\\\\Authentication\\\\Matching class is deprecated since version 1.2 and will be removed in 2.0."
1515
count: 1
16-
path: src/Authentication/QueryParam.php
16+
path: src/Authentication/Matching.php
1717

1818
-
19-
message: "#^Method Http\\\\Message\\\\Authentication\\\\QueryParam\\:\\:__construct\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
19+
message: "#^Property Http\\\\Message\\\\Authentication\\\\QueryParam\\:\\:\\$params type has no value type specified in iterable type array\\.$#"
2020
count: 1
2121
path: src/Authentication/QueryParam.php
2222

2323
-
24-
message: "#^Parameter \\#2 \\$prefix of function http_build_query expects string, null given\\.$#"
24+
message: "#^Method Http\\\\Message\\\\Authentication\\\\QueryParam\\:\\:__construct\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
2525
count: 1
2626
path: src/Authentication/QueryParam.php
2727

@@ -46,12 +46,12 @@ parameters:
4646
path: src/Cookie.php
4747

4848
-
49-
message: "#^Parameter \\#2 \\$str2 of function strcasecmp expects string, string\\|null given\\.$#"
49+
message: "#^Parameter \\#2 \\$string2 of function strcasecmp expects string, string\\|null given\\.$#"
5050
count: 1
5151
path: src/Cookie.php
5252

5353
-
54-
message: "#^Parameter \\#1 \\$str of function preg_quote expects string, string\\|null given\\.$#"
54+
message: "#^Parameter \\#1 \\$string of function preg_quote expects string, string\\|null given\\.$#"
5555
count: 1
5656
path: src/Cookie.php
5757

@@ -160,16 +160,6 @@ parameters:
160160
count: 2
161161
path: src/Encoding/Filter/Chunk.php
162162

163-
-
164-
message: "#^Parameter \\#2 \\$bucket of function stream_bucket_append expects object, resource given\\.$#"
165-
count: 2
166-
path: src/Encoding/Filter/Chunk.php
167-
168-
-
169-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
170-
count: 1
171-
path: src/Encoding/Filter/Chunk.php
172-
173163
-
174164
message: "#^Method Http\\\\Message\\\\Encoding\\\\FilteredStream\\:\\:fill\\(\\) has no return typehint specified\\.$#"
175165
count: 1
@@ -215,6 +205,11 @@ parameters:
215205
count: 1
216206
path: src/MessageFactory/SlimMessageFactory.php
217207

208+
-
209+
message: "#The RequestMatcher\\\\RegexRequestMatcher class is deprecated since version 1.2 and will be removed in 2.0."
210+
count: 1
211+
path: src/RequestMatcher/RegexRequestMatcher.php
212+
218213
-
219214
message: "#^Property Http\\\\Message\\\\RequestMatcher\\\\RequestMatcher\\:\\:\\$methods type has no value type specified in iterable type array\\.$#"
220215
count: 1

0 commit comments

Comments
 (0)