Passing in multiple types into a parameter breaks frontend controllers

Created on 4 May 2022, about 2 years ago
Updated 13 October 2023, 8 months ago

Problem/Motivation

A Guzzle Parameter allows for multiple types to be passed in as viable, and will return either a single string or an array when ->getType() is called, but every instance of getType in the module expects it to be a string.

Steps to reproduce

Set up a parameter to pass in multiple types. ie type: ['array','string']

Proposed resolution

Use the first item in the array as the type for all frontend/controller purposes.

🐛 Bug report
Status

Fixed

Version

9.3

Component

Code

Created by

🇺🇸United States grathbone

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024