From 782a48e2aad766434df9b2e9828320ef857aa439 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera <pol.dellaiera@protonmail.com> Date: Mon, 3 Jan 2022 14:13:03 +0100 Subject: [PATCH] sa: Update PHPStan baseline. --- phpstan-baseline.neon | 63 +++++++++++++------------------------------ 1 file changed, 19 insertions(+), 44 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e04624709..5ea98e62f 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -45,21 +45,11 @@ parameters: count: 1 path: src/Operation/Distinct.php - - - message: "#^Parameter \\#1 \\$ of closure expects array\\<int, callable\\(mixed, mixed, Iterator\\<mixed, mixed\\>\\)\\: bool\\>, array\\<int\\|string, callable\\(\\)\\: mixed\\> given\\.$#" - count: 1 - path: src/Operation/DropWhile.php - - message: "#^Template type U of method loophp\\\\collection\\\\Operation\\\\Duplicate\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" count: 1 path: src/Operation/Duplicate.php - - - message: "#^Parameter \\#1 \\$ of closure expects array\\<int, callable\\(mixed, mixed, Iterator\\<mixed, mixed\\>\\)\\: bool\\>, array\\<int\\|string, callable\\(\\)\\: mixed\\> given\\.$#" - count: 1 - path: src/Operation/Filter.php - - message: "#^Template type V of method loophp\\\\collection\\\\Operation\\\\Find\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" count: 1 @@ -81,24 +71,34 @@ parameters: path: src/Operation/Get.php - - message: "#^Method loophp\\\\collection\\\\Operation\\\\Group\\:\\:__invoke\\(\\) should return Closure\\(Iterator\\<TKey, T\\>\\)\\: Generator\\<int, array\\<int, T\\>, mixed, mixed\\> but returns Closure\\(Iterator\\)\\: Generator\\<int, non\\-empty\\-array\\<int, mixed\\>, mixed, void\\>\\.$#" + message: "#^Template type NewTKey of method loophp\\\\collection\\\\Operation\\\\GroupBy\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" count: 1 - path: src/Operation/Group.php + path: src/Operation/GroupBy.php - - message: "#^Template type NewTKey of method loophp\\\\collection\\\\Operation\\\\GroupBy\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" + message: "#^Foreach overwrites \\$current with its value variable\\.$#" count: 1 - path: src/Operation/GroupBy.php + path: src/Operation/Head.php - - message: "#^Template type V of method loophp\\\\collection\\\\Operation\\\\Map\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" + message: "#^Foreach overwrites \\$key with its key variable\\.$#" count: 1 - path: src/Operation/Map.php + path: src/Operation/Head.php - - message: "#^Parameter \\#1 \\$ of closure expects array\\<int, callable\\(mixed, mixed, Iterator\\<mixed, mixed\\>\\)\\: bool\\>, array\\<int\\|string, callable\\(\\)\\: mixed\\> given\\.$#" - count: 2 - path: src/Operation/MatchOne.php + message: "#^Foreach overwrites \\$current with its value variable\\.$#" + count: 1 + path: src/Operation/Last.php + + - + message: "#^Foreach overwrites \\$key with its key variable\\.$#" + count: 1 + path: src/Operation/Last.php + + - + message: "#^Template type V of method loophp\\\\collection\\\\Operation\\\\Map\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" + count: 1 + path: src/Operation/Map.php - message: "#^Template type U of method loophp\\\\collection\\\\Operation\\\\Product\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" @@ -130,11 +130,6 @@ parameters: count: 1 path: src/Operation/Reduction.php - - - message: "#^Parameter \\#1 \\$ of closure expects array\\<int, callable\\(mixed, mixed, Iterator\\<mixed, mixed\\>\\)\\: bool\\>, array\\<int\\|string, callable\\(\\)\\: mixed\\> given\\.$#" - count: 1 - path: src/Operation/Reject.php - - message: "#^Template type V of method loophp\\\\collection\\\\Operation\\\\ScanLeft\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" count: 1 @@ -165,31 +160,11 @@ parameters: count: 1 path: src/Operation/ScanRight1.php - - - message: "#^Parameter \\#1 \\$ of closure expects array\\<int, callable\\(mixed, mixed, Iterator\\<mixed, mixed\\>\\)\\: bool\\>, array\\<int\\|string, callable\\(\\)\\: mixed\\> given\\.$#" - count: 1 - path: src/Operation/Since.php - - - - message: "#^Parameter \\#1 \\$ of closure expects array\\<int, callable\\(mixed, mixed, Iterator\\<mixed, mixed\\>\\)\\: bool\\>, array\\<int\\|string, callable\\(\\)\\: mixed\\> given\\.$#" - count: 1 - path: src/Operation/Split.php - - - - message: "#^Parameter \\#1 \\$ of closure expects array\\<int, callable\\(mixed, mixed, Iterator\\<mixed, mixed\\>\\)\\: bool\\>, array\\<int\\|string, callable\\(\\)\\: mixed\\> given\\.$#" - count: 1 - path: src/Operation/TakeWhile.php - - message: "#^While loop condition is always true\\.$#" count: 1 path: src/Operation/Unfold.php - - - message: "#^Parameter \\#1 \\$ of closure expects array\\<int, callable\\(mixed, mixed, Iterator\\<mixed, mixed\\>\\)\\: bool\\>, array\\<int\\|string, callable\\(\\)\\: mixed\\> given\\.$#" - count: 1 - path: src/Operation/Until.php - - message: "#^Template type U of method loophp\\\\collection\\\\Operation\\\\Zip\\:\\:__invoke\\(\\) is not referenced in a parameter\\.$#" count: 1