---
title: "Deprecation: #97787 - Severities of flash messages and reports deprecated"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-97787-1655495192"
source: "Changelog/12.0/Deprecation-97787-SeveritiesOfFlashMessagesAndReportsDeprecated.rst"
typo3-version: "12.0"
typo3-major: 12
type: "deprecation"
issue: 97787
forge: "https://forge.typo3.org/issues/97787"
tags: ["PHP-API", "FullyScanned", "ext:core"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #97787 - Severities of flash messages and reports deprecated {#deprecation-97787-1655495192}

See [forge#97787](https://forge.typo3.org/issues/97787)

## Description {#description}

With the introduction of `\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity`,
the existing severity constants of `\TYPO3\CMS\Core\Messaging\FlashMessage`
and `\TYPO3\CMS\Reports\Status` have been marked as deprecated.

## Impact {#impact}

Passing the constants as listed below to the constructor of
`\TYPO3\CMS\Core\Messaging\FlashMessage` will trigger a PHP `E_USER_DEPRECATED` error:

-   `\TYPO3\CMS\Core\Messaging\FlashMessage::NOTICE`
-   `\TYPO3\CMS\Core\Messaging\FlashMessage::INFO`
-   `\TYPO3\CMS\Core\Messaging\FlashMessage::OK`
-   `\TYPO3\CMS\Core\Messaging\FlashMessage::WARNING`
-   `\TYPO3\CMS\Core\Messaging\FlashMessage::ERROR`

Passing the constants as listed below to the constructor of
`\TYPO3\CMS\Reports\Status` will trigger a PHP `E_USER_DEPRECATED` error:

-   `\TYPO3\CMS\Reports\Status::NOTICE`
-   `\TYPO3\CMS\Reports\Status::INFO`
-   `\TYPO3\CMS\Reports\Status::OK`
-   `\TYPO3\CMS\Reports\Status::WARNING`
-   `\TYPO3\CMS\Reports\Status::ERROR`

## Affected installations {#affected-installations}

All installations with 3rd party plugins using the aforementioned constants are
affected.

## Migration {#migration}

Use the cases of the `\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity` enum.
The following cases are available:

-   `\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::NOTICE`
-   `\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::INFO`
-   `\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::OK`
-   `\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::WARNING`
-   `\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::ERROR`
