From 8971c8efacb9b09cf9b890f666a71c13131bbd42 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 3 Jun 2024 21:30:25 +0200 Subject: [PATCH] Exclude phan rule --- dev/tools/phan/config.php | 1 + dev/tools/phan/config_extended.php | 1 + 2 files changed, 2 insertions(+) diff --git a/dev/tools/phan/config.php b/dev/tools/phan/config.php index 48447acfadf..b5c6a65aa87 100644 --- a/dev/tools/phan/config.php +++ b/dev/tools/phan/config.php @@ -422,6 +422,7 @@ return [ 'PhanCompatibleNegativeStringOffset', // return false positive 'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is 'PhanTypeObjectUnsetDeclaredProperty', + 'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is 'PhanPluginWhitespaceTab', // Dolibarr used tabs 'PhanPluginCanUsePHP71Void', // Dolibarr is maintaining 7.0 compatibility diff --git a/dev/tools/phan/config_extended.php b/dev/tools/phan/config_extended.php index 59ce0afe0ff..252f755528a 100644 --- a/dev/tools/phan/config_extended.php +++ b/dev/tools/phan/config_extended.php @@ -67,6 +67,7 @@ $config['suppress_issue_types'] = [ 'PhanCompatibleNegativeStringOffset', // return false positive 'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is 'PhanTypeObjectUnsetDeclaredProperty', + 'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is 'PhanPluginWhitespaceTab', // Dolibarr used tabs 'PhanPluginCanUsePHP71Void', // Dolibarr is maintaining 7.0 compatibility