geocoder-php / Geocoder

The most featured Geocoder library written in PHP.
https://geocoder-php.org
MIT License
3.95k stars 519 forks source link

✅ Remove linebreaks in cached responses #1220

Closed jbelien closed 9 months ago

jbelien commented 9 months ago

Some of the cached responses had a linebreak that made the unserialization fail in PHP 8.3.

[!NOTE] Since PHP 8.3, Now emits E_WARNING when the passed string is not unserializeable; previously E_NOTICE was emitted. See https://www.php.net/manual/en/function.unserialize.php