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 8000
str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated #54291
Closed
@AshrafOxid

Description

@AshrafOxid

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0