From 4b5b4c4e1a5ba5e839994fee046bb2014cfe27c0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 May 2024 12:49:14 +0200 Subject: [PATCH] Clean some expected warnings --- 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 4b41865a26d..f360c5c0cd6 100644 --- a/dev/tools/phan/config.php +++ b/dev/tools/phan/config.php @@ -421,6 +421,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', '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 4df133f4d11..c0a853313fe 100644 --- a/dev/tools/phan/config_extended.php +++ b/dev/tools/phan/config_extended.php @@ -66,6 +66,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', 'PhanPluginWhitespaceTab', // Dolibarr used tabs 'PhanPluginCanUsePHP71Void', // Dolibarr is maintaining 7.0 compatibility