#99163PageRepository - Undefined array key "doktype" & "shortcut_mode"
Description
I use the function getMenu() of TYPO3\CMS\Core\Domain\Repository\PageRepository and get the following two errors with PHP 8.1
Exception: PHP Warning: Undefined array key “doktype” in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 943
Exception: PHP Warning: Undefined array key “shortcut_mode” in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 944
You have already fixed it on other places.
(int)($pageRec['doktype'] ?? 0)
@(int)($page[‘shortcut_mode’] ?? self::SHORTCUT_MODE_NONE)@
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.