Deprecation: #85553 - PageRepository language-related methods use null as default value¶
See forge#85553
Description¶
The second parameter of the following methods now have a different default value (null
) than
before (-1
), to detect if the parameter is omitted or passed in explicitly:
TYPO3\CMS\Frontend\Page\PageRepository->getPageOverlay()
TYPO3\CMS\Frontend\Page\PageRepository->getPagesOverlay()
Impact¶
Calling one of these methods with the second argument with -1
will trigger a PHP E_USER_DEPRECATED
error.
Affected Installations¶
TYPO3 installations with custom extensions related to language handling.
Migration¶
In the unlikely case of directly calling these methods with -1
, it is recommended to remove
the second (optional) parameter completely, which will work in TYPO3 v8, TYPO3 v9 and in TYPO3 v10.