From 6047f72edffa4c724aeb2c0a81552bc0d78785b9 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Tue, 2 Jan 2024 11:54:07 +0100 Subject: [PATCH] [Added] phpstan + phpstan file --- composer.json | 5 +++-- phpstan.neon | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index eb509ca..75eeff2 100644 --- a/composer.json +++ b/composer.json @@ -45,8 +45,9 @@ }, "require": { "php": ">=7.1", - "oxid-esales/oxideshop-ce": "v6.0 - 6.3", - "google/apiclient":" ^2.0" + "oxid-esales/oxideshop-ce": "v6.0 - v6.3", + "google/apiclient":"^2.0", + "phpstan/phpstan": "^1.8" }, "autoload": { "psr-4": { diff --git a/phpstan.neon b/phpstan.neon index b6e0779..7894103 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,8 +3,8 @@ parameters: - IntelliSenseHelper.php - ../../oxid-esales/oxideshop-ce/source/oxfunctions.php - ../../oxid-esales/oxideshop-ce/source/overridablefunctions.php - level: 9 - phpVersion: 70100 + paths: + - ./ + level: 0 + phpVersion: 70200 checkMissingIterableValueType: false - ignoreErrors: - - '#Psr\\Container\\ContainerExceptionInterface is not subtype of Throwable#'