8000 str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated · Issue #54291 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

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

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

Closed
AshrafOxid opened this issue Mar 14, 2024 · 0 comments

Comments

@AshrafOxid
Copy link

Symfony version(s) affected

6

Description

Calling str_contains when there is no last error will cause deprecation warning

How to reproduce

run integration test that you call remove method and you will have a deprecation warning with phpunit 10 on line 201 of file Filesystem.php

Possible Solution

Add default value to last error or maybe test if there is no error first

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0