Fix syntax errors

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl
2026-05-28 13:45:30 +02:00
parent fc0060b8de
commit a622a78bba

View File

@@ -1145,9 +1145,11 @@ readonly class DockerActionManager {
}
}
protected function sendHttpRequest(string $httpMethod, string $url, array $requestOptions = []): Guzzle\Http\Message\Response {
if ($requestOptions['stream'] === true) {
protected function sendHttpRequest(string $httpMethod, string $url, array $requestOptions = []): \GuzzleHttp\Psr7\Response {
if ($requestOptions['stream'] ?? null === true) {
$requestOptions['proxy'] = 'unix:///var/run/docker.sock';
}
return $this->guzzleClient->request($httpMethod, $url, $requestOptions);
}
}