- πΈπ°Slovakia poker10
Thanks for working on this.
-function smart_ip_get_zip($src = NULL, &$context) { +function smart_ip_get_zip($src, &$context) { + if (empty($src)){ + $src = NULL; + }There is already a fallback if the
$srcis empty few lines below, so I suppose we just need to remove the NULL from the parameter default value, see:if (empty($src)) { // Fallback zip file $src = SMART_IP_MAXMIND_LITE_CSV_DOWNLOAD_BASE_URL . '/GeoLiteCity_' . format_date(REQUEST_TIME, 'custom', 'Ym') . '01.zip'; }-----------
Regarding the fixes to the
op_process()functions, I would say the better fix would be to just add a default value of empty string to the$fieldparameters, as these parameters does not seems to be used anywhere in the module or in theopenlayers_proximitymodule anyway. And these are required now, so adding the empty string default value will only fix the deprecation, but it will not introduce and BC break.Thanks!
- @poker10 opened merge request.
-
poker10 β
committed bf4d4334 on 7.x-2.x
Issue #3312924 by Igumnov_aleksey, poker10: Deprecated in PHP 8.0:...
-
poker10 β
committed bf4d4334 on 7.x-2.x
- Status changed to Fixed
almost 2 years ago 11:38pm 3 November 2023 - πΈπ°Slovakia poker10
Merged after applying my suggestions from #7. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.