brick / math

Arbitrary-precision arithmetic library for PHP
MIT License
1.78k stars 75 forks source link

Implements the Serializable interface, which is deprecated #69

Closed Dacesilian closed 2 years ago

Dacesilian commented 2 years ago

When using PHP 8.1:

Deprecated: Brick\Math\BigInteger implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /app/vendor/brick/math/src/BigInteger.php on line 22

Deprecated: Brick\Math\BigDecimal implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /app/vendor/brick/math/src/BigDecimal.php on line 17

More info: https://php.watch/versions/8.1/serializable-deprecated

Thank you for fixing!

Dacesilian commented 2 years ago

Already fixed in https://github.com/brick/math/releases/tag/0.9.3 .