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 passing null to string parameter deprecation #86

Closed
wants to merge 3 commits into from

Conversation

kocsismate
Copy link
Contributor

@kocsismate kocsismate commented Aug 8, 2022

Fixing strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

Fixing "strpos(): Passing null to parameter donatj#1 ($haystack) of type string is deprecated"
@donatj
Copy link
Owner

donatj commented Aug 8, 2022

Do you have a particular UA string that triggers the issue?

@kocsismate
Copy link
Contributor Author

kocsismate commented Aug 8, 2022

Do you have a particular UA string that triggers the issue?

Yes, our test suite contains a Lenovo-A880/S100 Linux/3.4.5 Android/4.2 Release/08.07.2013 Browser/AppleWebKit 534.30 Profile/ Configuration; User-Agent value which triggers it.

@donatj
Copy link
Owner

donatj commented Aug 8, 2022

Thanks! I just wanted to potentially add a regression test. PHP 8.1 is really snippy about strings.

@kocsismate
Copy link
Contributor Author

kocsismate commented Aug 8, 2022

I've just added a test. :) Can you please approve the workflow so that CI can be started?

donatj added a commit that referenced this pull request Aug 8, 2022
@donatj
Copy link
Owner

donatj commented Aug 8, 2022

This was manually merged as part of a35900b

It has been tagged and released in https://github.com/donatj/PhpUserAgent/releases/tag/v1.7.0

Thanks again!

@donatj donatj closed this Aug 8, 2022
@kocsismate kocsismate deleted the patch-2 branch August 8, 2022 17:07
@kocsismate
Copy link
Contributor Author

Thank you for your quick help!

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.

None yet

2 participants