Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PHP 8.1 #465

Closed
Tracked by #19041
githubjeka opened this issue Dec 9, 2021 · 3 comments
Closed
Tracked by #19041

Allow PHP 8.1 #465

githubjeka opened this issue Dec 9, 2021 · 3 comments
Labels
Milestone

Comments

@githubjeka
Copy link
Contributor

githubjeka commented Dec 9, 2021

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
Copy link

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

@machour
Copy link
Member

machour commented Feb 17, 2022

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 samdark added this to the 2.1.19 milestone Feb 17, 2022
@samdark
Copy link
Member

samdark commented Feb 19, 2022

Should be OK in master now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants