It looks like the library uses double keyword for a phpdoc comments in some places. PHP doesn't really differentiate between float and double with the former being much more common. IMHO it makes it confusing when reading the code. Additionally, some tools may not handle double data type correctly (for instance PHPStan). Therefore I would suggest switching double to float.
It looks like the library uses
double
keyword for a phpdoc comments in some places. PHP doesn't really differentiate betweenfloat
anddouble
with the former being much more common. IMHO it makes it confusing when reading the code. Additionally, some tools may not handledouble
data type correctly (for instance PHPStan). Therefore I would suggest switchingdouble
tofloat
.