#96342Numerous PHP 8.0 warnings in EditDocumentController
Description
On a live system with TYPO3 11 and PHP 8.0, a number of PHP warnings are logged at the same time:
PHP Warning: Trying to access array offset on value of type bool in /typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 1391 PHP Warning: Trying to access array offset on value of type bool in /typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 1364 PHP Warning: Trying to access array offset on value of type bool in /typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 1363 PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 1300 PHP Warning: Undefined array key '' in /typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 1300 PHP Warning: Trying to access array offset on value of type bool in /typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 1300 PHP Warning: Trying to access array offset on value of type bool in /typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 1299 PHP Warning: Trying to access array offset on value of type bool in /typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 1299
I cannot pinpoint exactly when this happens, but it’s always caused by a non-admin user, so it might be related to restricted access to certain pages/content elements.