Use the empty string for probing the Icinga 2 API

Using null results in an argument type error.
This commit is contained in:
Eric Lippmann 2021-11-08 15:11:07 +01:00 committed by Johannes Meyer
parent b6ef83c1cf
commit 65cc852eb7

View file

@ -312,7 +312,7 @@ class ApiCommandTransport implements CommandTransportInterface
{
try {
$response = (new Client())
->get($this->getUriFor(null), [
->get($this->getUriFor(''), [
'auth' => [$this->getUsername(), $this->getPassword()],
'headers' => ['Accept' => 'application/json'],
'http_errors' => false,