Skip to content

Issue errors when implementing deprecated Serializable interface without serialization magic methods #7482

@bburnichon

Description

@bburnichon

Feature request

Add an issue at level 0 for classes intended to be compatible with php >8.1 that implements deprecated Serializable interface but have no serialization magic methods.

Discussed in #7480

Originally posted by bburnichon June 15, 2022
Hi there,

I am currently working on making codebase compatible with php 8.1, I am looking for a rule to detect classes implementing Serializable but not implementing __serialize and __unserialize methods which appeared in PHP 7.4.

Do you know whether this was already implemented?

Thanks in advance for your support.

Did PHPStan help you today? Did it make you happy in any way?

I am really satisfied when my php code passes phpstan at max level. So many bugs avoided right before making their way to production.

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