Skip to content

Commit d2c4d22

Browse files
committed
suppress warnings on static access
1 parent c58f340 commit d2c4d22

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Adapter/Guzzle.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public function delete(string $uri, array $data = [], array $headers = []): Resp
7070
return $this->request('delete', $uri, $data, $headers);
7171
}
7272

73+
/**
74+
* @SuppressWarnings(PHPMD.StaticAccess)
75+
*/
7376
public function request(string $method, string $uri, array $data = [], array $headers = [])
7477
{
7578
if (!in_array($method, ['get', 'post', 'put', 'patch', 'delete'])) {

tests/Adapter/ResponseExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use GuzzleHttp\Psr7\Request;
77
use GuzzleHttp\Psr7\Response;
88

9+
/**
10+
* @SuppressWarnings(PHPMD.StaticAccess)
11+
*/
912
class ResponseExceptionTest extends TestCase
1013
{
1114
public function testFromRequestExceptionNoResponse()

0 commit comments

Comments
 (0)