This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Symfony InputBag Exception #1154
Closed
Description
Hello. 👋
I have come across this error
Exception `Symfony\Component\HttpFoundation\Exception\BadRequestException` thrown: `Input value "channels" contains a non-scalar value.
It all boils down to how you access the InputBag from the request here in class TriggerEventController extends Controller
$channels = $payload->get('channels', []);
So I replaced the previous line with
$channels = data_get($payload->all(), 'channels', []);
per (symfony/symfony#44432)
and everything works fine.
Is there any possibility to fix this?
Thanks
Metadata
Metadata
Assignees
Labels
No labels