From 354693f9bd00301f7ce5c1f7dbc169bcb999994f Mon Sep 17 00:00:00 2001 From: Benni Mack <benni@typo3.org> Date: Mon, 24 Apr 2023 20:35:48 +0200 Subject: [PATCH] [BUGFIX] Ensure AbstractExceptionHandler::IGNORED_EXCEPTION_CODES is protected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With #100720 the AbstractExceptionHandlers const IGNORED_EXCEPTION_CODES was set from private to public in order to allow to use it in subclasses. However, public is making this a full public API, which should be within the ExceptionHandler logic in general. For this reason, the constant is now changed from public to protected. Resolves: #100736 Relates: #100720 Releases: main, 11.5 Change-Id: I58427977c2217792ae854738f59527bdb2e8339e Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78736 Tested-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> --- typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php b/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php index 1b46be738e67..85b920410095 100644 --- a/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php +++ b/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php @@ -42,7 +42,7 @@ abstract class AbstractExceptionHandler implements ExceptionHandlerInterface, Si protected bool $logExceptionStackTrace = false; - public const IGNORED_EXCEPTION_CODES = [ + protected const IGNORED_EXCEPTION_CODES = [ 1396795884, // Current host header value does not match the configured trusted hosts pattern 1616175867, // Backend login request is rate limited 1616175847, // Frontend login request is rate limited -- GitLab