From fbf703b4dba6910f85808cc62e51b6aca3d3b6bf Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 17 May 2024 14:15:42 +0000 Subject: [PATCH] inspection fixes --- Config/phpcs.xml | 11 ++++------- Config/phpstan.neon | 7 ++++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Config/phpcs.xml b/Config/phpcs.xml index 96f7f77..e806b91 100755 --- a/Config/phpcs.xml +++ b/Config/phpcs.xml @@ -66,11 +66,11 @@ - + *Excel.php */tests/* - */Interfaces/* @@ -206,12 +205,11 @@ - - + @@ -221,6 +219,5 @@ *ResponseType.js - *HttpUri.js \ No newline at end of file diff --git a/Config/phpstan.neon b/Config/phpstan.neon index 3bc439f..ae0b092 100755 --- a/Config/phpstan.neon +++ b/Config/phpstan.neon @@ -8,9 +8,6 @@ parameters: universalObjectCratesClasses: - Stripe\StripeObject reportUnmatchedIgnoredErrors: false - inferPrivatePropertyTypeFromConstructor: true - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false treatPhpDocTypesAsCertain: false excludePaths: - *.tpl.php @@ -56,6 +53,10 @@ parameters: - *Datamatrix.php - *QR.php ignoreErrors: + - + identifier: missingType.iterableValue + - + identifier: missingType.generics - '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#' - '#expects phpOMS\\Algorithm\\PathFinding\\JumpPointNode\|null, phpOMS\\Algorithm\\PathFinding\\Node\|null given#' - '#should return array but returns array