laravie/geotools

Deprecation warning of implicit conversion from float to int

Opened this issue · 0 comments

if (180 === $longitude % 360) {

This causes deprecation warning on php8.1:

: Implicit conversion from float 8.526383399963379 to int loses precision in
[...]/vendor/laravie/geotools/src/Coordinate/Coordinate.php
on line
95

if (180 === (int) $longitude % 360) { would fix this.