#97682PHP Warning: Undefined array keys when using history on root level
Description
Multiple PHP warnings with PHP V8 appears when you look at the history and click on a “History/Reset” button, e.g. for be_users or be_groups
Core: Error handler (BE): PHP Warning: Undefined array key "security" in /typo3/sysext/backend/Classes/History/RecordHistory.php line 427 Core: Error handler (BE): PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/backend/Classes/History/RecordHistory.php line 427 Core: Error handler (BE): PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/backend/Classes/History/RecordHistory.php line 439
This is because in PHP V8, a number of warnings have been converted into Error exceptions and especially : Attempting to read an undefined array key.
Have a look here : [[https://www.php.net/manual/fr/migration80.incompatible.php]]
I am not really sure how this should be fixed. Something like on #96325 could be possible, or adding ignoreRootLevelRestriction
https://docs.typo3.org/m/typo3/reference-tca/main/en-us/Ctrl/Properties/Security.html