From af8fe5f5ae5f2bda0a244f81caac3e71cbbb4aae Mon Sep 17 00:00:00 2001 From: Marc Reichel Date: Mon, 1 Jul 2024 11:43:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20PHPStan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpstan-baseline.neon | 5 +++++ phpstan.neon | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index b7a8d7e..a987bfd 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,5 +1,10 @@ parameters: ignoreErrors: + - + message: "#^Unable to resolve the template type TMapValue in call to method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:map\\(\\)$#" + count: 1 + path: src/Models/Model.php + - message: "#^Cannot call method assertExitCode\\(\\) on Illuminate\\\\Testing\\\\PendingCommand\\|int\\.$#" count: 12 diff --git a/phpstan.neon b/phpstan.neon index d6626bd..6c9a47f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -13,5 +13,5 @@ parameters: - '#Call to an undefined static method MarcReichel\\IGDBLaravel\\Models\\Game::foo\(\).#' - '#Unable to resolve the template type TValue in call to function collect#' - '#Unable to resolve the template type TKey in call to function collect#' - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false + - identifier: missingType.iterableValue + - identifier: missingType.generics