You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of the Paginator class has an issue in the constructor when we pass the $count argument. The problem is with the $countPages property which should be calculated based on the $count property, but it doesn't. This can cause incorrect pagination calculations.
Steps to Reproduce:
Create an instance of the Paginator class with a non-zero count argument
$paginator = newPaginator(limit: 25, count: 100);
Expected Result:
The countPages property should be calculated based on the count property and return the correct value.
butschster
changed the title
Paginator constructor argument count has no effect
[spiral/pagination] Paginator doesn't calculate countPages correctly in constructor
Apr 22, 2023
Description
The current implementation of the Paginator class has an issue in the constructor when we pass the
$count
argument. The problem is with the$countPages
property which should be calculated based on the$count
property, but it doesn't. This can cause incorrect pagination calculations.Steps to Reproduce:
Create an instance of the
Paginator
class with a non-zero count argumentExpected Result:
The
countPages
property should be calculated based on the count property and return the correct value.The text was updated successfully, but these errors were encountered: