From 78dc647c982c8652ae9e5f94e9abbccec81a99cb Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Thu, 11 Jul 2024 13:55:26 +0200 Subject: [PATCH] Ignore unused code in library --- psalm.xml.dist | 2 +- src/ErrorHandlers/ThrowErrorException.php | 2 -- src/ErrorHandlers/TriggerExceptionError.php | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/psalm.xml.dist b/psalm.xml.dist index 606f492..6ce3d15 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -6,7 +6,7 @@ errorLevel="1" resolveFromConfigFile="true" findUnusedBaselineEntry="true" - findUnusedCode="true" + findUnusedCode="false" findUnusedVariablesAndParams="true" > diff --git a/src/ErrorHandlers/ThrowErrorException.php b/src/ErrorHandlers/ThrowErrorException.php index 695ce23..271b77b 100644 --- a/src/ErrorHandlers/ThrowErrorException.php +++ b/src/ErrorHandlers/ThrowErrorException.php @@ -35,8 +35,6 @@ use function error_reporting; * * > Usage: `set_error_handler(new ThrowErrorException());` * - * @api - * * @author Sebastian Meyer * @package Basics\ErrorHandlers */ diff --git a/src/ErrorHandlers/TriggerExceptionError.php b/src/ErrorHandlers/TriggerExceptionError.php index dcc08fc..16e9527 100644 --- a/src/ErrorHandlers/TriggerExceptionError.php +++ b/src/ErrorHandlers/TriggerExceptionError.php @@ -36,8 +36,6 @@ use function trigger_error; * * > Usage: `set_exception_handler(new TriggerExceptionError());` * - * @api - * * @author Sebastian Meyer * @package Basics\ErrorHandlers */