Skip to content

symfony/console: ArrayInput->__toString() val can be an array #24087

Closed
@dominikzogg

Description

@dominikzogg
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version master

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Console/Input/ArrayInput.php#L113

Value can be an array for example while testing with ArrayInput and multiple values. Everything else work as expected, but the escape failed, cause its written for strings.

new ArrayInput([
    '--option' => ['value1', 'value2']
]);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions