Fix Type error (#14555)

Fix production.ERROR: Typed property App\ApiClients\BaseApi::$client must not be accessed before initialization
cf. https://stackoverflow.com/a/59265626/3236342
This commit is contained in:
Félix Bouynot
2022-11-02 14:40:05 +01:00
committed by GitHub
parent 95a0050074
commit 3a61955658

View File

@@ -32,7 +32,7 @@ class BaseApi
{
protected string $base_uri;
protected int $timeout = 3;
private ?\Illuminate\Http\Client\PendingRequest $client;
private ?\Illuminate\Http\Client\PendingRequest $client = null;
protected function getClient(): \Illuminate\Http\Client\PendingRequest
{