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

Fix a type related depreciation with php 8.1 #982

Merged
merged 1 commit into from
Jan 27, 2022
Merged

Conversation

fsalmen-nx
Copy link
Contributor

With php 8.1 passing null as a second parameter to the explode function is deprecated.
See https://www.php.net/manual/en/migration81.deprecated.php
$request->headers->get($this->name); can return null so i suggest a simple cast to fix this deprecation.

Copy link
Collaborator

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contrib!

@chalasr
Copy link
Collaborator

chalasr commented Jan 27, 2022

Thank you @RiffFred.

@chalasr chalasr merged commit a4b862e into lexik:2.x Jan 27, 2022
@fsalmen-nx fsalmen-nx deleted the patch-2 branch August 31, 2023 07:57
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