mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user