dead catch reported in unserialize()
Author: pilifCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbug
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
Expected output
no error
Did PHPStan help you today? Did it make you happy in any way?
No response
Source: phpstan/phpstan