Skip to content

Commit c6a3be9

Browse files
committed
ref(logs): update compileAttributes method to accept both array and LogRecord types
1 parent 2443c56 commit c6a3be9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Monolog/LogsHandler.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ public function __destruct()
124124
}
125125
}
126126

127-
protected function compileAttributes(LogRecord $record): array
127+
/**
128+
* @param array<string, mixed>|LogRecord $record
129+
*/
130+
protected function compileAttributes($record): array
128131
{
129132
return array_merge($record['context'], $record['extra'], ['sentry.origin' => 'auto.logger.monolog']);
130133
}

0 commit comments

Comments
 (0)