From dcc9bda7581908fb182c0512f35ea0fc125f7c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 29 Sep 2019 11:50:32 +0200 Subject: [PATCH] Default tag callback for Telescope --- src/Features/TelescopeTags.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Features/TelescopeTags.php b/src/Features/TelescopeTags.php index 89709720..c1d4450f 100644 --- a/src/Features/TelescopeTags.php +++ b/src/Features/TelescopeTags.php @@ -14,6 +14,13 @@ class TelescopeTags implements Feature /** @var callable User-specific callback that returns tags. */ protected $callback; + public function __construct() + { + $this->callback = function ($entry) { + return []; + }; + } + public function bootstrap(TenantManager $tenantManager): void { if (! class_exists(Telescope::class)) {