Skip to content

Commit

Permalink
Merge pull request #804 from vHeemstra/patch-2
Browse files Browse the repository at this point in the history
Fix deprecated expression in WcPsrLoggerAdapter
  • Loading branch information
mmaymo authored Feb 21, 2024
2 parents 3b6a982 + ae5b39c commit 58c9de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Log/WcPsrLoggerAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function log($level, $message, array $context = [])
}

if (\WC_Log_Levels::get_level_severity($wcLevel) < \WC_Log_Levels::get_level_severity($this->loggingLevel)) {
throw new InvalidArgumentException("Unknown log level ${$wcLevel}");
throw new InvalidArgumentException("Unknown log level {$wcLevel}");
}

if (isset($context['source']) && $context['source'] !== $this-> loggerSource) {
Expand Down

0 comments on commit 58c9de2

Please sign in to comment.