Skip to content

Commit

Permalink
bugfix/Compilation with new version of the CustomClient, scrutinizer
Browse files Browse the repository at this point in the history
issue was fixed
  • Loading branch information
alexdodonov committed May 29, 2020
1 parent e1abb28 commit 22bdbf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions ServiceClient.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
namespace Mezon\Service;

use Mezon\CustomClient\CustomClient;

/**
* Class ServiceClient
*
Expand All @@ -14,7 +16,7 @@
/**
* Service client for Service
*/
class ServiceClient extends \Mezon\CustomClient\CustomClient
class ServiceClient extends CustomClient
{

/**
Expand Down Expand Up @@ -277,9 +279,9 @@ protected function getRequestUrl(string $urlLocator): string
/**
*
* {@inheritdoc}
* @see \Mezon\CustomClient\CustomClient::dispatchResult(string $url, int $code, string $body)
* @see CustomClient::dispatchResult(string $url, int $code, $body)
*/
protected function dispatchResult(string $url, int $code, string $body)
protected function dispatchResult(string $url, int $code, $body)
{
$jsonBody = json_decode(parent::dispatchResult($url, $code, $body));

Expand Down
2 changes: 1 addition & 1 deletion Tests/ServiceClientUnitTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function getServiceClientRawMock(
]): object
{
return $this->getMockBuilder($this->clientClassName)
->setMethods($methods)
->onlyMethods($methods)
->disableOriginalConstructor()
->getMock();
}
Expand Down

0 comments on commit 22bdbf3

Please sign in to comment.