Skip to content

Commit 9369193

Browse files
authored
Merge pull request #24 from arku31/main
Fix #15 missing fallback for the empty event name.
2 parents e503454 + 0809669 commit 9369193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NewRelicTransactionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function (ScheduledTaskStarting $scheduledTaskStarting): void {
250250
app(NewRelicTransaction::class)->start(
251251
config('new-relic.scheduler.prefix') .
252252
($scheduledTaskStarting->task->description ?: $this->parseTaskCommand(
253-
$scheduledTaskStarting->task->command
253+
$scheduledTaskStarting->task->command ?? 'unknown'
254254
))
255255
)->addParameter(
256256
'command',

0 commit comments

Comments
 (0)