Skip to content

Commit e7a7ab4

Browse files
authored
cast value in order to remove warning (#1126)
1 parent 89bb224 commit e7a7ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Grid/Grid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ protected function getCurrentUri()
556556

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

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

0 commit comments

Comments
 (0)