We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00b6c6b + adc6f6b commit 27b41bbCopy full SHA for 27b41bb
templates/Service/_logger/logger.twig
@@ -34,6 +34,7 @@ final class {{ class }} implements LoggerInterface {
34
* {@inheritdoc}
35
*/
36
public function log($level, string|\Stringable $message, array $context = []): void {
37
+ $message = (string) $message;
38
// Convert PSR3-style messages to \Drupal\Component\Render\FormattableMarkup
39
// style, so they can be translated too.
40
$placeholders = $this->parser->parseMessagePlaceholders($message, $context);
0 commit comments