Skip to content
Commit 2d60bff0 authored by Stefan Bürk's avatar Stefan Bürk Committed by Christian Kuhn
Browse files

[BUGFIX] Avoid deprecation message in MetaDataAspect

MetaDataAspect implements multiple interfaces and has return type hints
that match the interfaces. Except for the offsetGet() and current()
methods, which are defined by the ArrayAccess and Iterator interfaces.

The 'mixed' return type cannot be used before PHP 8.0, so it cannot be
added yet.

This patch adds the attribute '#[\ReturnTypeWillChange]' to avoid the
fatal error for PHP 8.1 and @todo comments to change the correct return
types, as a breaking patch for TYPO3 v12.

Resolves: #95744
Releases: master
Change-Id: Ic2c38758bbeaeef96efdcdf5f3349e3e3e08a72c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71947


Tested-by: default avatarSimon Gilli <typo3@gilbertsoft.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarSimon Gilli <typo3@gilbertsoft.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent ed26bba2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment