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

Error with str_contains in PHP 8.2 #263

Open
MoritzLost opened this issue May 10, 2023 · 1 comment
Open

Error with str_contains in PHP 8.2 #263

MoritzLost opened this issue May 10, 2023 · 1 comment

Comments

@MoritzLost
Copy link

We're getting this error in some console commands that interact with entries in some way:

str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in vendor/sebastianlenz/craft-utils/src/foreignField/ForeignFieldQueryExtension.php on line 264.

Not sure what's causing this exactly. I only see this error in some console commands, haven't seen it in a web request yet. Maybe it's an edge case that only occurs rarely, but can be handled in the craft-utils library?

@MoritzLost
Copy link
Author

@sebastian-lenz Can you take a look at this? We're still seeing this issue.

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