I keep opening the can of worms with BcMath\Number.
Now ran into a problem without any advance warning where one can't do $repository->count(['field' => 0]) on a BcMath\Number / Types::NUMBER field because:
Could not convert PHP value 0 to type Doctrine\DBAL\Types\NumberType. Expected one of the following types: null, BcMath\Number
Unless it's relaxed on Doctrine side, it would be great if those types were checked also.
Related issue: doctrine/dbal#7383
I keep opening the can of worms with BcMath\Number.
Now ran into a problem without any advance warning where one can't do
$repository->count(['field' => 0])on aBcMath\Number/Types::NUMBER fieldbecause:Unless it's relaxed on Doctrine side, it would be great if those types were checked also.
Related issue: doctrine/dbal#7383