Breaking: #102775 - PageRepository methods with native PHP types
See forge#102775
Description
Various methods in of the main TYPO3 Core classes
\TYPO3\
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->get Page () PageRepository->get Page_ no Check () PageRepository->get Page Overlay () PageRepository->get Pages Overlay () PageRepository->check Record () PageRepository->get Raw Record () PageRepository->enable Fields () PageRepository->get Multiple Groups Where Clause () PageRepository->version OL ()
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
Page 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
Page PHP class. Using proper type casts would is
a possible migration strategy.