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

Avoid passing null to strpos and explode #68

Merged
merged 2 commits into from
Feb 4, 2022
Merged

Avoid passing null to strpos and explode #68

merged 2 commits into from
Feb 4, 2022

Conversation

nimah79
Copy link
Contributor

@nimah79 nimah79 commented Feb 3, 2022

Passing null to non-nullable parameters of built-in functions is deprecated in PHP 8.1.

Copy link
Owner

@gecche gecche left a comment

Choose a reason for hiding this comment

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

Hi, thanks for your pull request and I will merge your PR asap...
but please could you change the PR by not using the null coalesce assignment operator ??= ?
This is because if I use Laravel 8 together with PHP 7.3 this operator is not supported at all.

Thanks

Giacomo

@gecche gecche merged commit d2a6c65 into gecche:master Feb 4, 2022
@gecche
Copy link
Owner

gecche commented Feb 4, 2022

thanks!

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