From 9f400f29186136cdb3624af53e75677cc814c8f3 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann <daniel.siepmann@typo3.org> Date: Thu, 21 Sep 2023 07:56:30 +0200 Subject: [PATCH] [DOCS] Add PHP warning impact for usergroup_cached_list field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The change log previously only mentioned the database impact. But code might access the field as array key on the user array. This would result in unexpected behaviour. Furthermore this would result in Warnings since PHP 8.0. The changelog is extended with the impact. That allows people to not only check database queries but also array access while migrating. Furthermore suggested migration class was replaced by the FQCN to ease migration. People do no longer need to find the FQCN. Furthermore it might exist a class with same name in the project from third party code, or it might be added another class in the future. Resolves: #101987 Releases: main, 12.4, 11.5 Change-Id: I475606e0f9a325880ee10339adaa2971985b05fa Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81144 Reviewed-by: Stefan Bürk <stefan@buerk.tech> Tested-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> --- ...ng-79565-RemovedUsergroup_cached_listDatabaseField.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/core/Documentation/Changelog/11.0/Breaking-79565-RemovedUsergroup_cached_listDatabaseField.rst b/typo3/sysext/core/Documentation/Changelog/11.0/Breaking-79565-RemovedUsergroup_cached_listDatabaseField.rst index 39421a96b77f..2eae2439e7b6 100644 --- a/typo3/sysext/core/Documentation/Changelog/11.0/Breaking-79565-RemovedUsergroup_cached_listDatabaseField.rst +++ b/typo3/sysext/core/Documentation/Changelog/11.0/Breaking-79565-RemovedUsergroup_cached_listDatabaseField.rst @@ -22,6 +22,9 @@ Impact The mentioned database field is removed, any direct SQL queries accessing or writing this field will result in a database error. +The PHP entry is removed from +:php:`\TYPO3\CMS\Core\Authentication\BackendUserAuthentication->user` array. +Accessing the array key will result in warnings since PHP 8.0. Affected Installations ====================== @@ -29,10 +32,13 @@ Affected Installations TYPO3 installations using or querying this database field with third-party extensions. +TYPO3 installations reading the array key from +:php:`\TYPO3\CMS\Core\Authentication\BackendUserAuthentication->user` array. Migration ========= -Use the class :php:`GroupResolver` to fetch all groups of a user directly. +Use the class :php:`\TYPO3\CMS\Core\Authentication\GroupResolver` +to fetch all groups of a user directly. .. index:: Backend, PHP-API, NotScanned, ext:core -- GitLab