Skip to content

Commit 8cc25cc

Browse files
authored
Merge pull request #18 from madeITBelgium/patch-2
Fix undefined function array_set
2 parents 58073de + d5d91aa commit 8cc25cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SearchConsoleClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use GuzzleHttp\Client;
77
use Google_Service_Webmasters;
88
use Illuminate\Support\Collection;
9+
use Illuminate\Support\Arr;
910

1011
class SearchConsoleClient
1112
{
@@ -105,7 +106,7 @@ public function setQuotaUser(string $quotaUser)
105106

106107
$guzzleConfig = $this->googleClient->getHttpClient()->getConfig();
107108

108-
array_set($guzzleConfig, 'base_uri', Google_Client::API_BASE_PATH.'?quotaUser='.$quotaUser);
109+
Arr::set($guzzleConfig, 'base_uri', Google_Client::API_BASE_PATH.'?quotaUser='.$quotaUser);
109110

110111
$guzzleClient = new Client($guzzleConfig);
111112

0 commit comments

Comments
 (0)