From 67ed300521f9e356cbb5db0f156c4437e706c048 Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Tue, 21 Jan 2025 18:25:03 +1100 Subject: [PATCH] fix test warning --- tests/Integration/SDK/Logs/LoggerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Integration/SDK/Logs/LoggerTest.php b/tests/Integration/SDK/Logs/LoggerTest.php index 32ce0bdf6..6843dfb8f 100644 --- a/tests/Integration/SDK/Logs/LoggerTest.php +++ b/tests/Integration/SDK/Logs/LoggerTest.php @@ -35,7 +35,7 @@ public function __construct(private readonly InMemoryExporter $exporter) { } - public function onEmit(ReadWriteLogRecord &$record, ContextInterface $context = null): void + public function onEmit(ReadWriteLogRecord &$record, ?ContextInterface $context = null): void { $record->setAttributes(['baz' => 'bat']); $this->exporter->export([$record]);