-
Christian Kuhn authored
Since PHP 8.1, most internal classes are updated with tentative return types. This will be enforced with 9.0. It means incompatible or missing return types in extending user land classes emit E_DEPRECATED since 8.1. We can not add the return type in many cases since that would be breaking in v11, solution is the #[\ReturnTypeWillChange] attribute. This patch adds according attributes to FlashMessageQueue, which extends \SplQueue. No longer returning $this in enqueue() can be done in v12 as breaking patch and mixed return type will be usable when core requires at least PHP 8.0. Change-Id: Iee7e4b79662b9c390e032d344164e4f1c0591688 Resolves: #95697 Releases: master Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71883 Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Jochen <rothjochen@gmail.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> Tested-by: Jochen <rothjochen@gmail.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
65d88c93