[TASK] Simplify ErrorHandler code
To decide whether an error should be handled by the ErrorHandler or not, only three things must be taken into account. 1. The current error_reporting() level 2. Error levels that are ignored by configuration 3. Error level of the error that is just handled When combining the first two (with logical and), results in the error level for the errors that should be handled at all. When combining this with the error level of the currently handled error (again with logical and), we can determine wether the error should be handled or not. This always works with any PHP version and with suppressed errors and without. Therefore the PHP version check becomes obsolete and is removed. Releases: main, 11.5 Resolves: #96311 Change-Id: I96d440d9db05a3acf1f8a12664787e05a3e31254 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72603 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Helmut Hummel <typo3@helhum.io> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Helmut Hummel <typo3@helhum.io>
Please register or sign in to comment