Skip to content

class which implements Serializable without also implementing __serialize() and __unserialize()  #7953

@staabm

Description

@staabm

Feature request

As of PHP 8.1.0, a class which implements Serializable without also implementing __serialize() and __unserialize() will generate a deprecation warning.

see

I think phpstan should emit a similar error, as it doesn't right now:
https://phpstan.org/r/c1d859f3-08f0-47f6-9771-ee60d771ea2a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions