Geocoder icon indicating copy to clipboard operation
Geocoder copied to clipboard

PHP 8.4 compatibility (implicit nullable deprecation) [Geocoder\\Collection::slice(): Implicitly marking parameter $length as nullable is deprecated]

Open AnnoyingTechnology opened this issue 11 months ago • 2 comments

I'm getting a deprecation warning with PHP 8.4 on

500 Geocoder\\Collection::slice(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead at line 41 in [REDACTED]/willdurand/geocoder/Collection.php

  • geocoder-php/open-cage-provider is 4.6.0
  • willdurand/geocoder is 4.6.0

Am I missing something, or is PHP 8.4 not supported at all yet ?

AnnoyingTechnology avatar Feb 06 '25 10:02 AnnoyingTechnology

https://github.com/geocoder-php/Geocoder/pull/1240

Chris53897 avatar Feb 11 '25 09:02 Chris53897

Hello @AnnoyingTechnology,

I've just released PHP Geocoder Version 5 in all providers (see #1241). Could you update your provider and check if the issue is still there? Thanks.

jbelien avatar Apr 16 '25 15:04 jbelien