From 0855dc175157ac7f826a5af6777d44484e8cab44 Mon Sep 17 00:00:00 2001 From: ADmad Date: Thu, 19 Sep 2024 18:39:20 +0530 Subject: [PATCH] Fix stan errors --- .phive/phars.xml | 4 ++-- phpstan.neon | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.phive/phars.xml b/.phive/phars.xml index 17093fd..c8954a4 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,5 +1,5 @@ - - + + diff --git a/phpstan.neon b/phpstan.neon index 5ef1237..bbf4d93 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,10 +1,12 @@ parameters: level: 8 - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false paths: - src ignoreErrors: + - + identifier: missingType.iterableValue + - + identifier: missingType.generics - message: "#^Parameter \\#1 \\$field of method Cake\\\\Datasource\\\\EntityInterface\\:\\:get\\(\\) expects string, array\\\\|string given\\.$#" count: 1 @@ -15,11 +17,6 @@ parameters: count: 1 path: src/File/Writer/DefaultWriter.php - - - message: "#^Parameter \\#1 \\$key of method Cake\\\\ORM\\\\Behavior\\:\\:setConfig\\(\\) expects array\\\\|string, array\\ given\\.$#" - count: 1 - path: src/Model/Behavior/UploadBehavior.php - - message: "#^Cannot use array destructuring on array\\\\|false\\.$#" count: 4