Skip to content

Commit

Permalink
fix code rot in ci setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed May 24, 2021
1 parent 9b8d8f7 commit 11dd897
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Expand Up @@ -31,6 +31,6 @@ jobs:
uses: actions/checkout@v2

- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
uses: docker://oskarstark/php-cs-fixer-ga:2.19.0
with:
args: --dry-run --diff-format udiff
27 changes: 11 additions & 16 deletions phpstan-baseline.neon
Expand Up @@ -11,17 +11,17 @@ parameters:
path: src/Authentication/Header.php

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

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

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

Expand All @@ -46,7 +46,7 @@ parameters:
path: src/Cookie.php

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

Expand Down Expand Up @@ -76,7 +76,7 @@ parameters:
path: src/Cookie.php

-
message: "#^Parameter \\#1 \\$str of function rtrim expects string, string\\|null given\\.$#"
message: "#^Parameter \\#1 \\$string of function rtrim expects string, string\\|null given\\.$#"
count: 1
path: src/Cookie.php

Expand Down Expand Up @@ -160,16 +160,6 @@ parameters:
count: 2
path: src/Encoding/Filter/Chunk.php

-
message: "#^Parameter \\#2 \\$bucket of function stream_bucket_append expects object, resource given\\.$#"
count: 2
path: src/Encoding/Filter/Chunk.php

-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Encoding/Filter/Chunk.php

-
message: "#^Method Http\\\\Message\\\\Encoding\\\\FilteredStream\\:\\:fill\\(\\) has no return typehint specified\\.$#"
count: 1
Expand Down Expand Up @@ -215,6 +205,11 @@ parameters:
count: 1
path: src/MessageFactory/SlimMessageFactory.php

-
message: "#The Http\\\\Message\\\\RequestMatcher\\\\RegexRequestMatcher class is deprecated since version 1.2 and will be removed in 2.0.#"
count: 1
path: src/RequestMatcher/RegexRequestMatcher.php

-
message: "#^Property Http\\\\Message\\\\RequestMatcher\\\\RequestMatcher\\:\\:\\$methods type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion src/Authentication/QueryParam.php
Expand Up @@ -38,7 +38,7 @@ public function authenticate(RequestInterface $request)

$params = array_merge($params, $this->params);

$query = http_build_query($params, null, '&');
$query = http_build_query($params, '', '&');

$uri = $uri->withQuery($query);

Expand Down

0 comments on commit 11dd897

Please sign in to comment.