Skip to content

Commit

Permalink
Fix deprecated expression in WcPsrLoggerAdapter
Browse files Browse the repository at this point in the history
Fix #803
  • Loading branch information
vHeemstra authored Jul 24, 2023
1 parent e74b903 commit ae5b39c
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 ae5b39c

Please sign in to comment.