Skip to content

Bug: "Array" rendered inside pagination HTML #416

Description

@armanist

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions