yiisoft / yii2-debug

Debug Extension for Yii 2
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
201 stars 149 forks source link

Allow PHP 8.1 #465

Closed githubjeka closed 2 years ago

githubjeka commented 2 years ago

install PHP 8.1. enable debug panel

http://localhost/index.php?r=debug

has error

PHP Deprecated Warning – yii\base\ErrorException
Opis\Closure\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)

https://github.com/opis/closure

antichris commented 2 years ago

How about switching over from opis/closure to laravel/serializable-closure?

machour commented 2 years ago

Another 8.1 deprecation message to be fixed:

class_exists(): Passing null to parameter #1 ($class) of type string is deprecated
in vendor/yiisoft/yii2-debug/src/panels/UserPanel.phpat line 91
samdark commented 2 years ago

Should be OK in master now.