You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at /var/www/project/vendor/league/geotools/src/Geohash/Geohash.php:140
Tested with php 8.2.13 raises the same issue. Any example will work new \League\Geotools\Coordinate\Coordinate([2.307266, 48.823405]),
The first issue menthioned bij @ahmedesa most likely lies in this code;
public function normalizeLongitude($longitude)
{
if (180 === $longitude % 360) {
return 180.0;
}
Looking at the code and modifying it to (int)$longitude should be safe and removes the depricated warning.
problem with Coordinate
error : Deprecated: Implicit conversion from float -104.84929305556 to int loses precision
The text was updated successfully, but these errors were encountered: