Skip to content

Commit

Permalink
cast value in order to remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
npotier committed Feb 5, 2025
1 parent f5468bf commit 9ba18e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Grid/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ protected function getCurrentUri()

protected function processPersistence()
{
$referer = strtok($this->request->headers->get('referer'), '?');
$referer = strtok((string) $this->request->headers->get('referer'), '?');

// Persistence or reset - kill previous session
if ((!$this->request->isXmlHttpRequest() && !$this->persistence && $referer != $this->getCurrentUri())
Expand Down

0 comments on commit 9ba18e1

Please sign in to comment.