diff --git a/src/ItemsPerPageSelector.php b/src/ItemsPerPageSelector.php index c7afce8bf6..4de6b5c72b 100644 --- a/src/ItemsPerPageSelector.php +++ b/src/ItemsPerPageSelector.php @@ -60,7 +60,7 @@ public function onPageLengthSelect(\Closure $fx): void $this->cb->set(function () use ($fx) { $ipp = isset($_GET['ipp']) ? (int) $_GET['ipp'] : null; // $this->pageLength->set(preg_replace("/\[ipp\]/", $ipp, $this->label)); - $this->set($ipp); // @phpstan-ignore-line TODO https://github.com/atk4/ui/issues/2016 + $this->set((string) $ipp); $reload = $fx($ipp); if ($reload) { $this->getApp()->terminateJson($reload);