From 558b778c4b99ae7a8047e6998e32be49b3d17313 Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Fri, 22 Feb 2019 10:02:47 +0100 Subject: [PATCH] Fix the command being null in the CommandStarting event --- src/Sentry/Laravel/EventHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Sentry/Laravel/EventHandler.php b/src/Sentry/Laravel/EventHandler.php index d7ffe301..06d2714c 100644 --- a/src/Sentry/Laravel/EventHandler.php +++ b/src/Sentry/Laravel/EventHandler.php @@ -294,7 +294,9 @@ protected function queueJobProcessedHandler(JobProcessed $event) protected function commandStartingHandler(CommandStarting $event) { Integration::configureScope(function (Scope $scope) use ($event): void { - $scope->setTag('command', $event->command); + if ($event->command) { + $scope->setTag('command', $event->command); + } }); }