Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 714cc5b

Browse files
committed
The get() method accepts Request or nuill
1 parent c8c66c9 commit 714cc5b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Statistics/Drivers/DatabaseDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public static function create(array $data): StatisticsDriver
9292
* Get the records to show to the dashboard.
9393
*
9494
* @param mixed $appId
95-
* @param \Illuminate\Http\Request $request
95+
* @param \Illuminate\Http\Request|null $request
9696
* @return array
9797
*/
98-
public static function get($appId, Request $request): array
98+
public static function get($appId, ?Request $request): array
9999
{
100100
$class = config('websockets.statistics.database.model');
101101

src/Statistics/Drivers/StatisticsDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ public static function create(array $data): StatisticsDriver;
6161
* Get the records to show to the dashboard.
6262
*
6363
* @param mixed $appId
64-
* @param \Illuminate\Http\Request $request
64+
* @param \Illuminate\Http\Request|null $request
6565
* @return void
6666
*/
67-
public static function get($appId, Request $request);
67+
public static function get($appId, ?Request $request);
6868

6969
/**
7070
* Delete statistics from the store,

0 commit comments

Comments
 (0)