Explorar el Código

Erreur 500 : Argument 1 passed to Geocoder\Query\GeocodeQuery::create() must be of the type string, null given

develop
Guillaume hace 2 años
padre
commit
f9d9fa8f75
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      Component/CitiesComponent.php

+ 5
- 1
Component/CitiesComponent.php Ver fichero

@@ -85,7 +85,11 @@ class CitiesComponent

public function callAddressApi($query)
{
$provider = $this->getGeocoderProvider() ;;
if(is_null($query)) {
$query = '';
}

$provider = $this->getGeocoderProvider() ;
$query = GeocodeQuery::create($query)->withData('type', 'housenumber');
$results = $provider->geocodeQuery($query);
$resultsToReturn = array();

Cargando…
Cancelar
Guardar