Skip to content
Snippets Groups Projects

Update LoggerTrait.php for psr3

Merged Moshe Weitzman requested to merge issue/dtt-3453184:2.x into 2.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -28,7 +28,7 @@ trait LoggerTrait
@@ -28,7 +28,7 @@ trait LoggerTrait
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public function log($level, $message, array $context = []): void
public function log($level, string|\Stringable $message, array $context = []): void
{
{
if ($level <= $this->failOnLogsLevel) {
if ($level <= $this->failOnLogsLevel) {
throw new LoggedMessageException(strtr($message, $context), $level);
throw new LoggedMessageException(strtr($message, $context), $level);
Loading