Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[!!!][TASK] Mitigate depecated flash message severity
Since TYPO3 v12 the flash message severity are deprecated in favour of the `ContextualFeedbackSeverity` and will fail in TYPO3 v13. This change mitigates the deprecation and removal by directly using the native PHP Enum for TYPO3 v12 and TYPO3 v13 by: * Changing signature of `AbstractTranslateHook::flashMessages()` from integer to `ContextualFeedbackSeverity`. * Replace integer `-1` with `ContextualFeedbackSeverity::INFO` in two places within `TranslateHook`. Something addon extensions needs to handle on their own. [1] https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Deprecation-97787-SeveritiesOfFlashMessagesAndReportsDeprecated.html
- Loading branch information