Skip to content

Commit 79e370d

Browse files
authored
Update PaginatedCollection.php (#385)
fix bug for high version php Typed property Webklex\PHPIMAP\Support\PaginatedCollection::$total must not be accessed before initialization
1 parent 77026c2 commit 79e370d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/PaginatedCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PaginatedCollection extends Collection {
2828
*
2929
* @var int $total
3030
*/
31-
protected int $total;
31+
protected int $total = 0;
3232

3333
/**
3434
* Paginate the current collection.

0 commit comments

Comments
 (0)