brick / math

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

Psalm issues #35

Closed BenMorel closed 4 years ago

BenMorel commented 4 years ago

The latest build (with no code changes) highlighted Psalm issues; these may have been introduced by a new version of Psalm (?):

ERROR: ImpureByReferenceAssignment - src/BigDecimal.php:799:9 - Variable $a cannot be assigned to as it is passed by reference $a = $x->value; ERROR: ImpureByReferenceAssignment - src/BigDecimal.php:800:9 - Variable $b cannot be assigned to as it is passed by reference $b = $y->value; ...

https://travis-ci.org/brick/math/jobs/648337506

@alexeyshockov Could you please have a look?