Skip to content

Commit

Permalink
suppress warnings on static access
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed May 28, 2021
1 parent c58f340 commit d2c4d22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Adapter/Guzzle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down
3 changes: 3 additions & 0 deletions tests/Adapter/ResponseExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Psr7\Response;

/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class ResponseExceptionTest extends TestCase
{
public function testFromRequestExceptionNoResponse()
Expand Down

0 comments on commit d2c4d22

Please sign in to comment.