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

Commit fee9a81

Browse files
authored
Fix Symfony deprecation error in TriggerEventController (#1147)
* Fix Symfony deprecation error in TriggerEventController * Remove optional in TriggerEventController
1 parent 9ab87be commit fee9a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpApi/Controllers/TriggerEventController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __invoke(Request $request)
1616
if ($payload->has('channel')) {
1717
$channels = [$payload->get('channel')];
1818
} else {
19-
$channels = $payload->get('channels', []);
19+
$channels = $payload->all()['channels'] ?? [];
2020

2121
if (is_string($channels)) {
2222
$channels = [$channels];

0 commit comments

Comments
 (0)