Skip to content

Commit d7d0a99

Browse files
authored
Merge pull request #2 from lassereinboeng/fix-collection-paginate-compatibility
fix: add static return type for paginate
2 parents 6e08253 + 85a4224 commit d7d0a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/KirbyLoupeCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function formatted(Page $page) {
3737
return $this->hit($page)["_formatted"];
3838
}
3939

40-
public function paginate(...$arguments) {
40+
public function paginate(...$arguments): static {
4141
// The original Collection class uses Pagination::for() which will
4242
// automatically set the total parameter based on the collection length
4343
// which we don't want, so we create new Pagination instance manually.

0 commit comments

Comments
 (0)