$request->get may no longer return array as of Symfony 6.0 (BadRequestException)

Created on 9 March 2023, almost 2 years ago
Updated 25 March 2023, over 1 year ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.InvalidArgumentException: Expected a scalar value as a 2nd argument to "Symfony\Component\HttpFoundation\InputBag::get()", "array" given.

Proposed resolution

In symfony 6, the InputBag::get(), no longer accepts arrays as default values, so we need to change it to string.

🐛 Bug report
Status

Fixed

Version

1.28

Component

Views integration

Created by

🇧🇪Belgium jmaerckaert Geer, province of Liège

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024