diff --git a/Classes/Command/MigrateFieldsCommand.php b/Classes/Command/MigrateFieldsCommand.php index 264a856..9810657 100644 --- a/Classes/Command/MigrateFieldsCommand.php +++ b/Classes/Command/MigrateFieldsCommand.php @@ -50,7 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int ->select('uid') ->from('pages') ->where( - $queryBuilder->expr()->eq('tx_realurl_exclude', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT)) + $queryBuilder->expr()->eq('tx_realurl_exclude', $queryBuilder->createNamedParameter(1, Connection::PARAM_INT)) ) ->execute() ->fetchAll(); diff --git a/Classes/SlugModifier.php b/Classes/SlugModifier.php index e79c17a..65f5916 100644 --- a/Classes/SlugModifier.php +++ b/Classes/SlugModifier.php @@ -12,6 +12,7 @@ */ use TYPO3\CMS\Backend\Utility\BackendUtility; +use TYPO3\CMS\Core\Database\Connection; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\DataHandling\SlugHelper; use TYPO3\CMS\Core\Information\Typo3Version; @@ -83,7 +84,7 @@ protected function resolveHookParameters(array $configuration, string $tableName $stm = $queryBuilder->select('*') ->from('pages') ->where( - $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($record['uid'], \PDO::PARAM_INT)) + $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($record['uid'], Connection::PARAM_INT)) ) ->execute(); if ((GeneralUtility::makeInstance(Typo3Version::class))->getMajorVersion() === 10) { diff --git a/Classes/Updates/MigrateRealUrlExcludeField.php b/Classes/Updates/MigrateRealUrlExcludeField.php index d36e586..be12a37 100644 --- a/Classes/Updates/MigrateRealUrlExcludeField.php +++ b/Classes/Updates/MigrateRealUrlExcludeField.php @@ -12,6 +12,7 @@ * of the License, or any later version. */ +use TYPO3\CMS\Core\Database\Connection; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Install\Updates\DatabaseUpdatedPrerequisite; @@ -49,7 +50,7 @@ protected function getExistingExcludedPages(): array ->where( $queryBuilder->expr()->eq( 'tx_realurl_exclude', - $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT) + $queryBuilder->createNamedParameter(1, Connection::PARAM_INT) ) ) ->execute()