From 653734e8fcd515a0e7256270f0cff18e8711562e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 9 Feb 2024 14:15:55 +0100 Subject: [PATCH] Cleanup phpstan --- phpstan.bootstrap.php | 16 ++++++++++++++++ phpstan.neon | 4 ---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/phpstan.bootstrap.php b/phpstan.bootstrap.php index 67cd56d6..0e001172 100644 --- a/phpstan.bootstrap.php +++ b/phpstan.bootstrap.php @@ -12,3 +12,19 @@ set_include_path(implode(PATH_SEPARATOR, [ ])); require_once 'program/include/iniset.php'; + +// Stub jqueryui plugin, we're using it, but do not have an easy way to include +class jqueryui extends rcube_plugin +{ + public function init() + { + } + + public static function miniColors() + { + } + + public static function tagedit() + { + } +} diff --git a/phpstan.neon b/phpstan.neon index 3c0853bf..06948b80 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,9 +2,6 @@ parameters: bootstrapFiles: - phpstan.bootstrap.php - excludePaths: - - plugins/libkolab/vendor - fileExtensions: - php - php.dist @@ -15,7 +12,6 @@ parameters: - '#Access to an undefined property (calendar|tasklist)::\$driver#' - '#Access to an undefined property (calendar|tasklist)::\$itip#' - '#Access to an undefined property (calendar|tasklist)::\$ical#' - - '#Call to static method .* on an unknown class jqueryui#' - '#Access to an undefined property Kolab2FA\\.*::\$(username|secret)#' - '#Unsafe call to private method Firebase\\JWT\\JWT::.*#' - '#Access to an undefined property Sabre\\VObject.*::\$.*#'