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

Serializable interface is depreciated. #38732

Closed
rakshit087 opened this issue Sep 9, 2021 · 2 comments
Closed

Serializable interface is depreciated. #38732

rakshit087 opened this issue Sep 9, 2021 · 2 comments

Comments

@rakshit087
Copy link

  • Laravel Version: 8.6.2
  • PHP Version: 8.1.0RC1
  • Database Driver & Version: None

Description:

After the PHP update 8.1, the Serializable interface is deprecated, however, illuminate/queue uses it, which is breaking the installation.

Steps To Reproduce:

  1. Update Laravel to Latest Version (If you are using Globel Installation) and create a new application by laravel new example-app or directly create a new app by composer create-project laravel/laravel example-app
  2. You will get this error 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)
    I am attaching relevant screenshots. :)

image
image

@Jubeki
Copy link
Contributor

Jubeki commented Sep 9, 2021

A PR for PHP 8.1 Support in opis/closure is already in draft state. opis/closure#103

Also for PHP 8.1 Support in Laravel is a PR currently on its way. #38404

Edit: Also please always use the latest laravel version (currently v8.59.0)

@rakshit087
Copy link
Author

Great! Thanks, closing the issue. :)

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

No branches or pull requests

2 participants