Fix type mismatch when using TypoScript settings

This commit is contained in:
Daniel Siepmann (Codappix) 2025-01-16 11:49:28 +01:00
parent 9743948cb5
commit 56d922cb3a
2 changed files with 4 additions and 3 deletions
Classes/Controller
Documentation/Changelog

View file

@ -63,8 +63,8 @@ final class DateController extends AbstractController
$dates,
$this->paginationFactory->create(
$currentPage,
$this->settings['itemsPerPage'] ?? 25,
$this->settings['maximumLinks'] ?? 5,
(int)($this->settings['itemsPerPage'] ?? 25),
(int)($this->settings['maximumLinks'] ?? 5),
$dates
)
));

View file

@ -41,7 +41,8 @@ Features
Fixes
-----
Nothing
* Ensure pagination settings are provided in expected type (int).
TypoScript settings will always be strings, so we fix this with a proper type cast.
Tasks
-----