Skip to content

Commands inside tinker incorrectly parsed #141

@amadeann

Description

@amadeann

Steps To Reproduce:

  1. Open psysh
  2. type exit

Expected: Tinker closes with Exit: Goodbye
Actual: RuntimeException with message 'Too many arguments, expected arguments "command".'

From what I see, it most likely caused by the change in symfony/console (line 27) commited 10 days ago:
symfony/console@aa58a69

Because of that change Psy\Input\ShellInput::tokenize() is not able to correctly parse arguments. Instead of catching the entire "exit" string, it parses it letter by letter.

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