Skip to content

API Deprecate TotalItems()#11633

Merged
emteknetnz merged 1 commit intosilverstripe:5.4from
creative-commoners:pulls/5.4/paginatedlist-totalitems
Mar 12, 2025
Merged

API Deprecate TotalItems()#11633
emteknetnz merged 1 commit intosilverstripe:5.4from
creative-commoners:pulls/5.4/paginatedlist-totalitems

Conversation

@GuySartorelli
Copy link
Copy Markdown
Member

@GuySartorelli GuySartorelli force-pushed the pulls/5.4/paginatedlist-totalitems branch from ed588a5 to 98fd53d Compare March 11, 2025 20:55
Comment thread src/ORM/ListDecorator.php
return $this->list->last();
}

public function getTotalItems()
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use int as the return type because that would require changing it in PaginatedList::getTotalItems() as well, which is a breaking change

@emteknetnz emteknetnz merged commit 9b13fee into silverstripe:5.4 Mar 12, 2025
17 checks passed
@emteknetnz emteknetnz deleted the pulls/5.4/paginatedlist-totalitems branch March 12, 2025 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants