Need help for this error Class App\Models\Settings\EmailSettings has no unserializer #111
-
Hi, this issue might be related to #105. Currently im using this package with PHP8.0. Just upgraded to latest 2.3.1 version, and got this error. Im loading this EmailSettings in AppServicePovider like below. If using 2.2.0, it works.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @kotakSempit, The Just ran the tests on PHP 7.4 without any problems and we're using Could you try cleaning your cache and try again. |
Beta Was this translation helpful? Give feedback.
Hi @kotakSempit,
The
Serializable
interface was deprecated(https://php.watch/versions/8.1/serializable-deprecated) so that's why we don't use it anymore. Normallyunserialize()
should work fine without the interface and theunserialize()
method since it will use the__unserialize()
method.Just ran the tests on PHP 7.4 without any problems and we're using
unserialize
over there.Could you try cleaning your cache and try again.