Skip to content

Symfony/serializer Normalizer interface allow null type as return value. #46031

Closed
@Legion112

Description

@Legion112

Symfony version(s) affected

4.4.20

Description

Probaby the interface should allow to return null value as well.
In case of data type ?object.

https://github.com/symfony/serializer/blob/8efe86f60f594882f118a319ef8fac9353d67b84/Normalizer/DenormalizerInterface.php#L35

How to reproduce

image

Possible Solution

Add to interface anotation return type null

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