Closed harryqt closed 1 year ago
Only the v4 beta supports PHP 8.1. ;)
Alternatively, consider https://github.com/laravel/serializable-closure.
Error: C:\laragon\www\Laravel\brainiark_shop\vendor\opis\closure\src\SerializableClosure.php on line 18
I have the issue recently and it is caused by the Serializable interface not being use anymore in latest version of PHP.
You will find this on line 18 in this location on your project: vendor/opis/closure/src/SerializableCourse.php:
First Step (1): class SerializableClosure implements Serializable {}
change it to: class SerializableClosure {}
Second Step (2): public function serialize() {}
change it to: public function __serialize() {}
Third Step (3): public function serialize() {}
change it to: public function __serialize() {}
That's all, don't bother to thank me (smile)
PHP 8.1