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 6bef488 commit 7f32ea9
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 @@ -44,7 +44,7 @@ public function __construct(string $logFileName = 'amazonpay.log')
* @throws \OxidEsales\Eshop\Core\Exception\DatabaseConnectionException
* @throws \OxidEsales\Eshop\Core\Exception\DatabaseErrorException
*/
public function logMessage(string $message, array $context = []): void
public function logMessage(?string $message, array $context = []): void
{
$context = $this->resolveLogContent($context);
$basket = Registry::getSession()->getBasket();
Expand Down

0 comments on commit 7f32ea9

Please sign in to comment.