Merge pull request #59636 from nextcloud/carl/sendRequest-followup

fix(Client): Make class complient with PSR standard
This commit is contained in:
Joas Schilling 2026-04-15 07:46:08 +02:00 committed by GitHub
commit 5ffa428c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -481,7 +481,7 @@ class Client implements IClient {
public function sendRequest(RequestInterface $request): ResponseInterface {
$this->preventLocalAddress((string)$request->getUri(), []);
return $this->client->sendRequest($request);
return $this->client->send($request, $this->buildRequestOptions([]));
}
protected function wrapGuzzlePromise(PromiseInterface $promise): IPromise {

View file

@ -8,8 +8,10 @@ declare(strict_types=1);
*/
namespace OCP\Http\Client;
use Psr\Http\Client\ClientExceptionInterface;
/**
* @since 19.0.0
*/
class LocalServerException extends \RuntimeException {
class LocalServerException extends \RuntimeException implements ClientExceptionInterface {
}