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:
Page
Repository->get Page () Page
Repository->get Page_ no Check () Page
Repository->get Page Overlay () Page
Repository->get Pages Overlay () Page
Repository->check Record () Page
Repository->get Raw Record () Page
Repository->enable Fields () Page
Repository->get Multiple Groups Where Clause () Page
Repository->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.