[BUGFIX] Explicit cast to string for VersionState object
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Page / PageRepository.php
index 1b019b1..b31fb18 100644 (file)
@@ -1664,7 +1664,7 @@ class PageRepository
                         $queryBuilder->expr()->eq(
                             't3ver_state',
                             $queryBuilder->createNamedParameter(
-                                new VersionState(VersionState::MOVE_PLACEHOLDER),
+                                (string)VersionState::cast(VersionState::MOVE_PLACEHOLDER),
                                 \PDO::PARAM_INT
                             )
                         ),