Skip to content

Commit

Permalink
fix: magento 2.4.7 compatibility (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-net authored Apr 30, 2024
1 parent 30f7322 commit 0d1ce24
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Model/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,63 +44,63 @@ public function __construct(LoggerInterface $log, State $state)
/**
* {@inheritdoc}
*/
public function emergency($message, array $context = [])
public function emergency($message, array $context = []): void
{
$this->log->emergency('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function alert($message, array $context = [])
public function alert($message, array $context = []): void
{
$this->log->alert('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function critical($message, array $context = [])
public function critical($message, array $context = []): void
{
$this->log->critical('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function error($message, array $context = [])
public function error($message, array $context = []): void
{
$this->log->error('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function warning($message, array $context = [])
public function warning($message, array $context = []): void
{
$this->log->warning('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function notice($message, array $context = [])
public function notice($message, array $context = []): void
{
$this->log->notice('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function info($message, array $context = [])
public function info($message, array $context = []): void
{
$this->log->info('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function debug($message, array $context = [])
public function debug($message, array $context = []): void
{
if ($this->enableDebugLog) {
$this->log->debug('[TweakWise] ' . $message, $context);
Expand All @@ -110,7 +110,7 @@ public function debug($message, array $context = [])
/**
* {@inheritdoc}
*/
public function log($level, $message, array $context = [])
public function log($level, $message, array $context = []): void
{
$this->log->log($level, '[TweakWise] ' . $message, $context);
}
Expand All @@ -121,7 +121,7 @@ public function log($level, $message, array $context = [])
* @param Exception $exception
* @throws Exception
*/
public function throwException(Exception $exception)
public function throwException(Exception $exception): void
{
$this->log->error($exception->getMessage());
throw $exception;
Expand Down

0 comments on commit 0d1ce24

Please sign in to comment.