Skip to content

Commit

Permalink
Merge pull request #412 from ErHaWeb/master
Browse files Browse the repository at this point in the history
[TASK] Use Connection instead of PDO
  • Loading branch information
lochmueller authored Mar 20, 2024
2 parents 597f083 + 3d372d0 commit d192b5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Domain/Repository/CacheRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use SFC\Staticfilecache\Service\ConfigurationService;
use SFC\Staticfilecache\Service\DateTimeService;
use TYPO3\CMS\Core\Database\Connection;
use TYPO3\CMS\Core\Utility\GeneralUtility;

/**
Expand All @@ -23,7 +24,7 @@ public function findExpiredIdentifiers(): array
->from($this->getTableName())
->where($queryBuilder->expr()->lt(
'expires',
$queryBuilder->createNamedParameter((new DateTimeService())->getCurrentTime(), \PDO::PARAM_INT)
$queryBuilder->createNamedParameter((new DateTimeService())->getCurrentTime(), Connection::PARAM_INT)
))
->groupBy('identifier')
->executeQuery()
Expand Down

0 comments on commit d192b5c

Please sign in to comment.