Skip to content

Commit

Permalink
Fix up PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 7, 2024
1 parent 724631d commit 89a4d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geocoder/Geocoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ protected function _buildGeocoder() {

/** @var \Cake\Http\Client $adapterClass */
$adapterClass = $this->getConfig('adapter');
$this->adapter = new $adapterClass(new Client(), new ResponseFactory());
$this->adapter = new $adapterClass();

$provider = new GoogleMaps($this->adapter, $this->getConfig('region'), $this->getConfig('apiKey'));
$geocoder = new StatefulGeocoder($provider, $this->getConfig('locale') ?: 'en');
Expand Down

0 comments on commit 89a4d32

Please sign in to comment.