Fix DBAL parameter types in event filter queries

This commit is contained in:
Jürgen Mummert
2026-02-22 11:04:09 +01:00
parent 0685f8eeb1
commit 9668a455f3
@@ -11,6 +11,7 @@ use Contao\ModuleModel;
use Contao\StringUtil; use Contao\StringUtil;
use Doctrine\DBAL\ArrayParameterType; use Doctrine\DBAL\ArrayParameterType;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
use Doctrine\DBAL\ParameterType;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
@@ -55,7 +56,7 @@ class EventFilterController extends AbstractFrontendModuleController
ORDER BY e.startTime ASC ORDER BY e.startTime ASC
SQL, SQL,
[$today, $today], [$today, $today],
[\PDO::PARAM_INT, \PDO::PARAM_INT], [ParameterType::INTEGER, ParameterType::INTEGER],
)->fetchFirstColumn(); )->fetchFirstColumn();
} else { } else {
$rows = $this->connection->executeQuery( $rows = $this->connection->executeQuery(
@@ -70,7 +71,7 @@ class EventFilterController extends AbstractFrontendModuleController
ORDER BY e.startTime ASC ORDER BY e.startTime ASC
SQL, SQL,
[$calendarIds, $today, $today], [$calendarIds, $today, $today],
[ArrayParameterType::INTEGER, \PDO::PARAM_INT, \PDO::PARAM_INT], [ArrayParameterType::INTEGER, ParameterType::INTEGER, ParameterType::INTEGER],
)->fetchFirstColumn(); )->fetchFirstColumn();
} }