Open ahmedesa opened 1 year ago
I can also add:
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
Hello,
Thanks for your feedback! Can you show a test case ?
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