From 714cc5b22def3da5f1ef8da23b2c89cd0af42d87 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sun, 23 Aug 2020 13:38:56 +0300 Subject: [PATCH] The get() method accepts Request or nuill --- src/Statistics/Drivers/DatabaseDriver.php | 4 ++-- src/Statistics/Drivers/StatisticsDriver.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Statistics/Drivers/DatabaseDriver.php b/src/Statistics/Drivers/DatabaseDriver.php index cb5e353..034e4d4 100644 --- a/src/Statistics/Drivers/DatabaseDriver.php +++ b/src/Statistics/Drivers/DatabaseDriver.php @@ -92,10 +92,10 @@ class DatabaseDriver implements StatisticsDriver * Get the records to show to the dashboard. * * @param mixed $appId - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request|null $request * @return array */ - public static function get($appId, Request $request): array + public static function get($appId, ?Request $request): array { $class = config('websockets.statistics.database.model'); diff --git a/src/Statistics/Drivers/StatisticsDriver.php b/src/Statistics/Drivers/StatisticsDriver.php index 9b9cfb0..fd77b2c 100644 --- a/src/Statistics/Drivers/StatisticsDriver.php +++ b/src/Statistics/Drivers/StatisticsDriver.php @@ -61,10 +61,10 @@ interface StatisticsDriver * Get the records to show to the dashboard. * * @param mixed $appId - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request|null $request * @return void */ - public static function get($appId, Request $request); + public static function get($appId, ?Request $request); /** * Delete statistics from the store,