Skip to content

removeOption() does not clear _shortOptions in ConsoleOptionParser #18375

@s-nakajima

Description

@s-nakajima

Description

Hi, thank you for your great work on CakePHP.

When using removeOption() in ConsoleOptionParser, the option is removed from the _options property, but the corresponding value in _shortOptions is not deleted.

Please see the relevant code here:
https://github.com/cakephp/cakephp/blob/5.x/src/Console/ConsoleOptionParser.php#L417-L422

I would appreciate it if you could take a look.

CakePHP Version

5.2.2

PHP Version

8.1, 8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions