Merge pull request #10631 from xini/patch-5

fix: optional return value for paginator state
This commit is contained in:
Guy Sartorelli 2023-01-09 10:47:17 +13:00 committed by GitHub
commit 62f71a321d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -587,7 +587,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
/**
* Get the current paginator state
*/
private function getGridFieldPaginatorState(): GridState_Data
private function getGridFieldPaginatorState(): ?GridState_Data
{
$state = $this->getGridField()->getState(false);
$gridStateStr = $this->getStateManager()->getStateFromRequest($this->gridField, $this->getRequest());