Description
Pagination HTML sometimes renders a literal "Array" string inside page numbers. This appears in both ModelPaginator and ArrayPaginator outputs and is visible in the UI.
Root Cause
In PaginatorTrait::getItemsLinks() the $pagination variable is initialized as an array and later concatenated as a string, causing PHP to cast the array to the string "Array" during rendering.
$pagination = []; // incorrect
$pagination .= '<li>...</li>';
Expected Behavior
Pagination HTML should never contain the string "Array" and should render valid <li> elements only.
Tests Added
Added regression tests to ensure this bug cannot reappear
Description
Pagination HTML sometimes renders a literal "Array" string inside page numbers. This appears in both
ModelPaginatorandArrayPaginatoroutputs and is visible in the UI.Root Cause
In
PaginatorTrait::getItemsLinks()the$paginationvariable is initialized as an array and later concatenated as a string, causing PHP to cast the array to the string "Array" during rendering.Expected Behavior
Pagination HTML should never contain the string "Array" and should render valid
<li>elements only.Tests Added
Added regression tests to ensure this bug cannot reappear