Skip to content

Commit

Permalink
Bugfix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Weikert committed Jan 6, 2022
1 parent 83b778b commit d50a103
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/HttpAdapter/CurlOroHttpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Digitalprint\Oro\Api\Exceptions\ApiException;
use Digitalprint\Oro\Api\OroApiClient;
use stdClass;
use Symfony\Contracts\Service\ResetInterface;

final class CurlOroHttpAdapter implements OroHttpAdapterInterface
{
Expand All @@ -30,10 +29,10 @@ final class CurlOroHttpAdapter implements OroHttpAdapterInterface
* @param string $url
* @param array $headers
* @param $httpBody
* @return ResponseInterface|null
* @return stdClass|null
* @throws ApiException
*/
public function send($httpMethod, $url, $headers, $httpBody): ?ResponseInterface
public function send($httpMethod, $url, $headers, $httpBody): ?stdClass
{
$curl = curl_init($url);
$headers["Content-Type"] = "application/json";
Expand Down

0 comments on commit d50a103

Please sign in to comment.