Skip to content

Commit

Permalink
Temporary workaround until phpstan/phpstan#5372 is fixed.
Browse files Browse the repository at this point in the history
(cherry picked from commit c2a6127)
  • Loading branch information
drupol committed Jul 26, 2021
1 parent 67b0dc6 commit 2cee919
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions phpstan-unsupported-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$callable of class loophp\\\\collection\\\\Collection constructor expects callable\\(\\.\\.\\.mixed\\)\\: iterable\\<int, string\\>, Closure\\(string, string\\)\\: loophp\\\\collection\\\\Iterator\\\\StringIterator\\<mixed, string\\> given\\.$#"
count: 1
path: src/Collection.php

-
message: "#^Generic type loophp\\\\collection\\\\Contract\\\\Operation\\\\Unpackable\\<mixed, mixed\\> in PHPDoc tag @extends does not specify all template types of interface loophp\\\\collection\\\\Contract\\\\Operation\\\\Unpackable\\: TKey, T, NewTKey, NewT$#"
count: 1
Expand All @@ -21,6 +26,27 @@ parameters:
path: src/Operation/Unpack.php

-
message: "#^Parameter \\#1 \\$callable of class loophp\\\\collection\\\\Collection constructor expects callable\\(\\.\\.\\.mixed\\)\\: iterable\\<int, string\\>, Closure\\(string, string\\)\\: loophp\\\\collection\\\\Iterator\\\\StringIterator\\<mixed, string\\> given\\.$#"
message: "#^Parameter \\#1 \\$collection of function asyncMap_checkListString expects loophp\\\\collection\\\\Contract\\\\Collection\\<int, string\\>, loophp\\\\collection\\\\Contract\\\\Collection\\<int, non\\-empty\\-string\\> given\\.$#"
count: 2
path: tests/static-analysis/asyncMap.php

-
message: "#^Parameter \\#1 \\$collection of function asyncMap_checkasyncMapString expects loophp\\\\collection\\\\Contract\\\\Collection\\<string, string\\>, loophp\\\\collection\\\\Contract\\\\Collection\\<string, non\\-empty\\-string\\> given\\.$#"
count: 1
path: src/Collection.php
path: tests/static-analysis/asyncMap.php

-
message: "#^Parameter \\#1 \\$collection of function flatMap_checkListString expects loophp\\\\collection\\\\Contract\\\\Collection\\<int, string\\>, loophp\\\\collection\\\\Contract\\\\Collection\\<int, non\\-empty\\-string\\> given\\.$#"
count: 2
path: tests/static-analysis/flatMap.php

-
message: "#^Parameter \\#1 \\$collection of function map_checkListString expects loophp\\\\collection\\\\Contract\\\\Collection\\<int, string\\>, loophp\\\\collection\\\\Contract\\\\Collection\\<int, non\\-empty\\-string\\> given\\.$#"
count: 2
path: tests/static-analysis/map.php

-
message: "#^Parameter \\#1 \\$collection of function map_checkMapString expects loophp\\\\collection\\\\Contract\\\\Collection\\<string, string\\>, loophp\\\\collection\\\\Contract\\\\Collection\\<string, non\\-empty\\-string\\> given\\.$#"
count: 1
path: tests/static-analysis/map.php

0 comments on commit 2cee919

Please sign in to comment.