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

Commit

Permalink
Fix Symfony deprecation error in TriggerEventController (#1147)
Browse files Browse the repository at this point in the history
* Fix Symfony deprecation error in TriggerEventController

* Remove optional in TriggerEventController
  • Loading branch information
pajkho authored Aug 30, 2023
1 parent 9ab87be commit fee9a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpApi/Controllers/TriggerEventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __invoke(Request $request)
if ($payload->has('channel')) {
$channels = [$payload->get('channel')];
} else {
$channels = $payload->get('channels', []);
$channels = $payload->all()['channels'] ?? [];

if (is_string($channels)) {
$channels = [$channels];
Expand Down

0 comments on commit fee9a81

Please sign in to comment.