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]);