Skip to content
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
Closed
@enterlight

Description

@enterlight

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions