Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid/Grid.php strtok(): Passing null to parameter #1 ($string) of type string is deprecated #1114

Open
Skargne opened this issue Nov 29, 2024 · 0 comments

Comments

@Skargne
Copy link

Skargne commented Nov 29, 2024

Hi,
In Symfony 5.4, there is a deprecation on in Grid/Grid.php line 559 :

Deprecated: strtok(): Passing null to parameter #1 ($string) of type string is deprecated

Here is a possible fix :

- $referer = strtok($this->request->headers->get('referer'), '?');
+ $referer = $this->request->headers->get('referer') ? strtok($this->request->headers->get('referer'), '?') : false;
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

No branches or pull requests

1 participant