It seems like Brick\Math\BigDecimal::of($rate->getValue()) can also be of type Brick\Math\BigInteger and Brick\Math\BigRational; however, parameter $exchange_rate of App\Entity\PriceInformat...ency::setExchangeRate() does only seem to accept Brick\Math\BigDecimal|null, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation