From d2c4d225e0c438e0be9e649446fb8c6f8b4724fc Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Fri, 28 May 2021 10:32:02 +1000 Subject: [PATCH] suppress warnings on static access --- src/Adapter/Guzzle.php | 3 +++ tests/Adapter/ResponseExceptionTest.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Adapter/Guzzle.php b/src/Adapter/Guzzle.php index 2cc76361..71e7dd75 100644 --- a/src/Adapter/Guzzle.php +++ b/src/Adapter/Guzzle.php @@ -70,6 +70,9 @@ public function delete(string $uri, array $data = [], array $headers = []): Resp return $this->request('delete', $uri, $data, $headers); } + /** + * @SuppressWarnings(PHPMD.StaticAccess) + */ public function request(string $method, string $uri, array $data = [], array $headers = []) { if (!in_array($method, ['get', 'post', 'put', 'patch', 'delete'])) { diff --git a/tests/Adapter/ResponseExceptionTest.php b/tests/Adapter/ResponseExceptionTest.php index d876deb4..8283e0fc 100644 --- a/tests/Adapter/ResponseExceptionTest.php +++ b/tests/Adapter/ResponseExceptionTest.php @@ -6,6 +6,9 @@ use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; +/** + * @SuppressWarnings(PHPMD.StaticAccess) + */ class ResponseExceptionTest extends TestCase { public function testFromRequestExceptionNoResponse()