Skip to content

dead catch reported in unserialize() #15329

Description

@pilif

Bug report

unserialize() can throw exceptions when the classes it unserializes throw in __wakeup() or __unserialize()

Code snippet that reproduces the problem

https://phpstan.org/r/29a1ea60-97d4-4b6a-aece-ecf906ed61c7

https://3v4l.org/fFikH#v

Expected output

no error

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

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions