diff --git a/src/Telescope.php b/src/Telescope.php index 276bd4e75..9cfea56c9 100644 --- a/src/Telescope.php +++ b/src/Telescope.php @@ -6,6 +6,7 @@ use Exception; use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Log\Events\MessageLogged; +use Illuminate\Support\Arr; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\File; use Illuminate\Support\Str; @@ -250,9 +251,9 @@ protected static function record(string $type, IncomingEntry $entry) return; } - $entry->type($type)->tags(array_map(function ($tagCallback) use ($entry) { + $entry->type($type)->tags(Arr::collapse(array_map(function ($tagCallback) use ($entry) { return $tagCallback($entry); - }, static::$tagUsing)); + }, static::$tagUsing))); try { if (Auth::hasResolvedGuards() && Auth::hasUser()) {