From a6f9fcd06c47074cbbe9534c51b2c8bc371e56ca Mon Sep 17 00:00:00 2001 From: freek Date: Wed, 7 Apr 2021 23:08:15 +0200 Subject: [PATCH] import namespace --- src/Context/LaravelRequestContext.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Context/LaravelRequestContext.php b/src/Context/LaravelRequestContext.php index d9537da2..696f87db 100644 --- a/src/Context/LaravelRequestContext.php +++ b/src/Context/LaravelRequestContext.php @@ -4,6 +4,7 @@ use Facade\FlareClient\Context\RequestContext; use Illuminate\Http\Request; +use Throwable; class LaravelRequestContext extends RequestContext { @@ -23,7 +24,7 @@ public function getUser(): array if (! $user) { return []; } - } catch (\Throwable $e) { + } catch (Throwable $e) { return []; } @@ -35,7 +36,7 @@ public function getUser(): array if (method_exists($user, 'toArray')) { return $user->toArray(); } - } catch (\Throwable $e) { + } catch (Throwable $e) { return []; } @@ -70,7 +71,7 @@ protected function getRouteParameters(): array { try { return collect(optional($this->request->route())->parameters ?? [])->toArray(); - } catch (\Throwable $e) { + } catch (Throwable $e) { return []; } }