[FOLLOWUP][BUGFIX] Fix minor error handler code bugs 19/54019/2
authorBenni Mack <benni@typo3.org>
Fri, 8 Sep 2017 12:21:33 +0000 (14:21 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 8 Sep 2017 13:07:53 +0000 (15:07 +0200)
ErrorHandler should deal with the same severity for trigger_error()
for E_USER_DEPRECATED as GeneralUtility::deprecationLog()
when calling GeneralUtility::devLog().

Resolves: #82375
Releases: master, 8.7
Change-Id: Iaff5f96f5bd0a2d94bb3bc76d9d3fec2d019c901
Reviewed-on: https://review.typo3.org/54019
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Error/ErrorHandler.php

index 80de0d3..b6da1de 100644 (file)
@@ -112,6 +112,7 @@ class ErrorHandler implements ErrorHandlerInterface
                 break;
             case E_USER_WARNING:
             case E_WARNING:
+            case E_USER_DEPRECATED:
                 $severity = 1;
                 break;
             default: