Breaking: #102775 - PageRepository methods with native PHP types

See forge#102775

Description

Various methods in of the main TYPO3 Core classes \TYPO3\CMS\Core\Domain\Repository\PageRepository now have native PHP types in their method signature, requiring the caller code to use exactly the required PHP types for the corresponding method arguments.

The following methods are affected:

  • PageRepository->getPage()
  • PageRepository->getPage_noCheck()
  • PageRepository->getPageOverlay()
  • PageRepository->getPagesOverlay()
  • PageRepository->checkRecord()
  • PageRepository->getRawRecord()
  • PageRepository->enableFields()
  • PageRepository->getMultipleGroupsWhereClause()
  • PageRepository->versionOL()

Impact

Calling the affected methods now requires the passed arguments to be of the specified PHP type. Otherwise a PHP TypeError is triggered.

Affected installations

TYPO3 installations with third-party extensions utilizing the PageRepository PHP class.

Migration

Extension authors need to adapt their PHP code to use ensure passed arguments are of the required PHP type when calling corresponding methods of the PageRepository PHP class. Using proper type casts would is a possible migration strategy.