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

Symfony InputBag Exception #1154

Closed
enterlight opened this issue Aug 29, 2023 · 1 comment
Closed

Symfony InputBag Exception #1154

enterlight opened this issue Aug 29, 2023 · 1 comment

Comments

@enterlight
Copy link

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

@ManuelLeiner
Copy link

ManuelLeiner commented Aug 30, 2023

Hi @enterlight

Fixed by #1147 and available via v1.14.1

@mpociot mpociot closed this as completed Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants