Thanks to visit codestin.com
Credit goes to github.com

Skip to content

symfony/yaml PHP 8.1 Compatibility #52326

Closed
@timnolte

Description

@timnolte

Symfony version(s) affected

6.3.3

Description

The trim() method will no longer accept a null value.

https://github.com/symfony/yaml/blob/6.3/Inline.php#L62

Deprecation warnings are thrown when this method is used.

How to reproduce

Call `Inline::parse( null );

Possible Solution

Need to validate that $value is not null before attempting to trim().

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