diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 8b734f11..cf8c725f 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -60,16 +60,6 @@ parameters: count: 1 path: src/Collection.php - - - message: "#^Parameter \\#1 \\$ of closure expects array\\, array\\\\)\\: bool\\> given\\.$#" - count: 1 - path: src/Collection.php - - - - message: "#^Parameter \\#1 \\$ of closure expects callable\\(mixed, mixed, mixed, iterable\\)\\: mixed, callable\\(T\\|V, T, TKey, Iterator\\\\)\\: \\(T\\|V\\) given\\.$#" - count: 1 - path: src/Collection.php - - message: "#^Parameter \\#1 \\$callable of class loophp\\\\collection\\\\Collection constructor expects callable\\(mixed \\.\\.\\.\\)\\: iterable, Closure\\(iterable\\)\\: Generator\\ given\\.$#" count: 13 @@ -151,7 +141,17 @@ parameters: path: src/Collection.php - - message: "#^Parameter \\#1 \\.\\.\\.\\$ of closure expects callable\\(mixed, mixed, iterable\\)\\: bool, Closure\\(\\)\\: void given\\.$#" + message: "#^Parameter \\#1 of closure expects array\\, array\\\\)\\: bool\\> given\\.$#" + count: 1 + path: src/Collection.php + + - + message: "#^Parameter \\#1 of closure expects callable\\(mixed, mixed, iterable\\)\\: bool, Closure\\(\\)\\: void given\\.$#" + count: 1 + path: src/Collection.php + + - + message: "#^Parameter \\#1 of closure expects callable\\(mixed, mixed, mixed, iterable\\)\\: mixed, callable\\(T\\|V, T, TKey, Iterator\\\\)\\: \\(T\\|V\\) given\\.$#" count: 1 path: src/Collection.php @@ -221,12 +221,12 @@ parameters: path: src/Operation/Duplicate.php - - message: "#^Parameter \\#1 \\$ of closure expects callable\\(mixed, mixed, iterable\\)\\: mixed, Closure\\(mixed, int, loophp\\\\collection\\\\Collection\\)\\: float given\\.$#" + message: "#^Parameter \\#1 \\$callback of method loophp\\\\collection\\\\Contract\\\\Operation\\\\Reduceable\\\\:\\:reduce\\(\\) expects callable\\(float\\|int, float, int, iterable\\\\)\\: \\(float\\|int\\), Closure\\(float, float, int, loophp\\\\collection\\\\Collection\\)\\: float given\\.$#" count: 1 path: src/Operation/Entropy.php - - message: "#^Parameter \\#1 \\$callback of method loophp\\\\collection\\\\Contract\\\\Operation\\\\Reduceable\\\\:\\:reduce\\(\\) expects callable\\(float\\|int, float, int, iterable\\\\)\\: \\(float\\|int\\), Closure\\(float, float, int, loophp\\\\collection\\\\Collection\\)\\: float given\\.$#" + message: "#^Parameter \\#1 of closure expects callable\\(mixed, mixed, iterable\\)\\: mixed, Closure\\(mixed, int, loophp\\\\collection\\\\Collection\\)\\: float given\\.$#" count: 1 path: src/Operation/Entropy.php @@ -271,7 +271,7 @@ parameters: path: src/Operation/Get.php - - message: "#^Parameter \\#1 \\.\\.\\.\\$ of closure expects callable\\(mixed, mixed, iterable\\)\\: bool, Closure\\(mixed, mixed, loophp\\\\iterators\\\\CachingIteratorAggregate\\)\\: bool given\\.$#" + message: "#^Parameter \\#1 of closure expects callable\\(mixed, mixed, iterable\\)\\: bool, Closure\\(mixed, mixed, loophp\\\\iterators\\\\CachingIteratorAggregate\\)\\: bool given\\.$#" count: 1 path: src/Operation/Init.php @@ -349,18 +349,3 @@ parameters: message: "#^Template type UKey of method loophp\\\\collection\\\\Operation\\\\Zip\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" count: 1 path: src/Operation/Zip.php - - - - message: "#^While loop condition is always true\\.$#" - count: 1 - path: tests/static-analysis/scanLeft1.php - - - - message: "#^While loop condition is always true\\.$#" - count: 1 - path: tests/static-analysis/scanRight1.php - - - - message: "#^Parameter \\#1 \\$collection of function unfold_checkList expects loophp\\\\collection\\\\Contract\\\\Collection\\, loophp\\\\collection\\\\Contract\\\\Collection\\\\> given\\.$#" - count: 3 - path: tests/static-analysis/unfold.php