Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Clients/AbstractMindboxClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function __construct($secretKey, IHttpClient $httpClient, LoggerInterface
public function prepareRequest(
$method,
$operationName,
\Mindbox\DTO\DTO $body = null,
?\Mindbox\DTO\DTO $body = null,
$additionalUrl = '',
$queryParams = [],
$isSync = true,
Expand Down Expand Up @@ -211,7 +211,7 @@ abstract protected function prepareAuthorizationHeader();
*
* @return string
*/
abstract protected function prepareBody(\Mindbox\DTO\DTO $body = null);
abstract protected function prepareBody(?\Mindbox\DTO\DTO $body = null);

/**
* Инициализация экземпляра запроса.
Expand Down
2 changes: 1 addition & 1 deletion src/Clients/MindboxClientV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected function prepareAuthorizationHeader()
*
* @return string
*/
protected function prepareBody(DTO $body = null)
protected function prepareBody(?DTO $body = null)
{
return $body ? $body->toXML() : '';
}
Expand Down
2 changes: 1 addition & 1 deletion src/Clients/MindboxClientV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected function prepareAuthorizationHeader()
*
* @return string
*/
protected function prepareBody(\Mindbox\DTO\DTO $body = null)
protected function prepareBody(?\Mindbox\DTO\DTO $body = null)
{
return $body ? $body->toJson() : '';
}
Expand Down