Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation: #97787 - Severities of flash messages and reports deprecated #3105

Closed
sabbelasichon opened this issue Aug 9, 2022 · 1 comment · Fixed by #3119
Closed

Deprecation: #97787 - Severities of flash messages and reports deprecated #3105

sabbelasichon opened this issue Aug 9, 2022 · 1 comment · Fixed by #3119

Comments

@sabbelasichon
Copy link
Owner

Deprecation: #97787 - Severities of flash messages and reports deprecated

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/12.0/Deprecation-97787-SeveritiesOfFlashMessagesAndReportsDeprecated.html
.. include:: /Includes.rst.txt

.. _deprecation-97787-1655495192:

=========================================================================
Deprecation: #97787 - Severities of flash messages and reports deprecated

See :issue:97787

Description

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

Impact

Passing the constants as listed below to the constructor of
:php:\TYPO3\CMS\Core\Messaging\FlashMessage will trigger a deprecation level
log entry:

  • :php:\TYPO3\CMS\Core\Messaging\FlashMessage::NOTICE
  • :php:\TYPO3\CMS\Core\Messaging\FlashMessage::INFO
  • :php:\TYPO3\CMS\Core\Messaging\FlashMessage::OK
  • :php:\TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
  • :php:\TYPO3\CMS\Core\Messaging\FlashMessage::ERROR

Passing the constants as listed below to the constructor of
:php:\TYPO3\CMS\Reports\Status will trigger a deprecation level log entry:

  • :php:\TYPO3\CMS\Reports\Status::NOTICE
  • :php:\TYPO3\CMS\Reports\Status::INFO
  • :php:\TYPO3\CMS\Reports\Status::OK
  • :php:\TYPO3\CMS\Reports\Status::WARNING
  • :php:\TYPO3\CMS\Reports\Status::ERROR

Affected installations

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

Migration

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

  • :php:\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::NOTICE
  • :php:\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::INFO
  • :php:\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::OK
  • :php:\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::WARNING
  • :php:\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::ERROR

.. index:: PHP-API, FullyScanned, ext:core

@helsner
Copy link
Collaborator

helsner commented Aug 9, 2022

missing in the RST file:
\TYPO3\CMS\Core\Messaging\AbstractMessage

@sabbelasichon is there a quick way to migrate this with some existing alias mapping or similar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants