Skip to content

Commit

Permalink
[BUGFIX] Prevent TypeError in ModuleController
Browse files Browse the repository at this point in the history
resolves #1084
  • Loading branch information
Patta authored and mschwemer committed Sep 18, 2024
1 parent 0015932 commit be3c580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function listAction(): ResponseInterface
}
}

$itemsPerPage = $this->settings['perPage'] ?? 10;
$itemsPerPage = (int)$this->settings['perPage'] ?? 10;

Check failure on line 104 in Classes/Controller/ModuleController.php

View workflow job for this annotation

GitHub Actions / PHPstan

Expression on left side of ?? is not nullable.
$paginator = GeneralUtility::makeInstance(QueryResultPaginator::class, $mails, $currentPage, $itemsPerPage);
$pagination = GeneralUtility::makeInstance(SlidingWindowPagination::class, $paginator, 15);

Expand Down

0 comments on commit be3c580

Please sign in to comment.