From 97f4e4f46288fb80e327b61ffc6d5b07e7ba887f Mon Sep 17 00:00:00 2001 From: MDW Date: Thu, 14 Mar 2024 20:05:32 +0100 Subject: [PATCH] Qual: Disable PhanPluginDuplicateCatchStatementBody which requires PHP7.1 for fix # Qual: Disable PhanPluginDuplicateCatchStatementBody which requires PHP7.1 for fix To fix this PHP7.1 is required, so skipping the message in the extended report as well. --- dev/tools/phan/config_extended.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/tools/phan/config_extended.php b/dev/tools/phan/config_extended.php index b9e92619b06..91b2894cd26 100644 --- a/dev/tools/phan/config_extended.php +++ b/dev/tools/phan/config_extended.php @@ -368,6 +368,7 @@ return [ 'PhanPluginDuplicateConditionalTernaryDuplication', // 2750+ occurrences 'PhanPluginDuplicateConditionalNullCoalescing', // Not essential - 990+ occurrences 'PhanPluginRedundantAssignmentInGlobalScope', // Not essential, a lot of false warning + 'PhanPluginDuplicateCatchStatementBody', // Requires PHP7.1 - 50+ occurrences ], // You can put relative paths to internal stubs in this config option. // Phan will continue using its detailed type annotations,