Skip to content

Commit

Permalink
Bugfix : "count(): Argument #1 ($value) must be of type Countable|arr…
Browse files Browse the repository at this point in the history
…ay, null given"
  • Loading branch information
csavelief committed Sep 16, 2024
1 parent 46a3910 commit 8f49fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@

$events = collect($request->input('lines'))
->map(fn($line) => $line ? json_decode($line, true) : [])
->filter(fn($event) => count($event) > 0)
->filter(fn($event) => $event && count($event) > 0)
->all();
$nbEventsAdded = $server->addOsqueryEvents($events);

Expand Down

0 comments on commit 8f49fba

Please sign in to comment.