Skip to content

Commit

Permalink
PSAPC-261: casting string, added nullable typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolorenz committed Jan 17, 2025
1 parent 7f32ea9 commit 45afd4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function logMessage(?string $message, array $context = []): void
$logMessage->setOrderId($context['orderId'] ?: $basket->getOrderId() ?: 'no basket');
$logMessage->setShopId($context['shopId'] ?: Registry::getConfig()->getShopId());
$logMessage->setRequestType($context['requestType'] ?? 'amazonpay');
$logMessage->setResponseMessage($message);
$logMessage->setResponseMessage((string)$message);
$logMessage->setStatusCode($context['statusCode'] ?: '200');
$logMessage->setIdentifier($context['identifier'] ?: $context['orderId'] ?: $userId);
$logMessage->setChargeId($context['chargeId'] ?: 'null');
Expand Down

0 comments on commit 45afd4a

Please sign in to comment.