You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: