v1.1.0
Overview
Per the PHP documentation, Serializable is being deprecated as of PHP 8.1. To temporarily comply with the warning, we are implementing __serialize()
and __unserialize()
to function in the same manner as our serialize()
and unserialize()
function.
Warning
As of PHP 8.1.0, a class which implements Serializable without also implementing __serialize() and __unserialize() will generate a deprecation warning.
Errors
Deprecated: BitPayKeyUtils\Util\Point implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
Deprecated: BitPayKeyUtils\KeyHelper\PrivateKey implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
Deprecated: BitPayKeyUtils\KeyHelper\PublicKey implements the Serializable interface, which is deprecated.
Thanks
- Thank you to @AlexKarpan for this submission!