Skip to content

Commit 52a3adc

Browse files
committed
Get 'string' instead of 'mixed' fron Config in AbstractApi::_construct
1 parent 007a031 commit 52a3adc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Client/Api/AbstractApi.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ abstract class AbstractApi
1212
{
1313
public function __construct(protected PendingRequest $httpClient)
1414
{
15-
$baseUrl = Config::get('n8n.api.base_url');
16-
$key = Config::get('n8n.api.key');
15+
$baseUrl = Config::string('n8n.api.base_url');
16+
$key = Config::string('n8n.api.key');
17+
1718
$this->httpClient = $httpClient->baseUrl($baseUrl)->withHeaders([
1819
'X-N8N-API-KEY' => $key,
1920
'Accept' => 'application/json',

0 commit comments

Comments
 (0)