Open gregor-tb opened 5 years ago
public function arccos(int $scale = null): Decimal
$scale is null here by default, but used like (int) 0. This is working in the additions $scale + 2 etc., but crashes on calling round(int) method, which does not accept null.
$scale + 2
round(int)
null
But later it is checked for explicit null value
$scale = ($scale === null) ? 32 : $scale;
public function arccos(int $scale = null): Decimal
$scale is null here by default, but used like (int) 0. This is working in the additions
$scale + 2
etc., but crashes on callinground(int)
method, which does not acceptnull
.But later it is checked for explicit
null
value