diff --git a/src/Geocoder/Geocoder.php b/src/Geocoder/Geocoder.php index 5bb5532..94526d4 100644 --- a/src/Geocoder/Geocoder.php +++ b/src/Geocoder/Geocoder.php @@ -133,23 +133,23 @@ class Geocoder { protected $adapter; /** - * @param array $config + * @param array $config */ public function __construct(array $config = []) { $defaults = (array)Configure::read('Geocoder'); $this->setConfig($config + $defaults); if ($this->getConfig('locale') === true) { - $this->setConfig('locale', strtolower(Locale::getPrimaryLanguage(I18n::getLocale()))); + $this->setConfig('locale', strtolower((string)Locale::getPrimaryLanguage(I18n::getLocale()))); } if ($this->getConfig('region') === true) { - $this->setConfig('region', strtolower(Locale::getRegion(I18n::getLocale()))); + $this->setConfig('region', strtolower((string)Locale::getRegion(I18n::getLocale()))); } } /** - * @return array + * @return array */ public function accuracyTypes() { $array = [ diff --git a/tests/TestCase/Controller/Admin/GeoControllerTest.php b/tests/TestCase/Controller/Admin/GeoControllerTest.php index c4487a0..b1016bd 100644 --- a/tests/TestCase/Controller/Admin/GeoControllerTest.php +++ b/tests/TestCase/Controller/Admin/GeoControllerTest.php @@ -14,7 +14,7 @@ class GeoControllerTest extends TestCase { use IntegrationTestTrait; /** - * @var array + * @var array */ protected array $fixtures = [ 'plugin.Geo.GeocodedAddresses',