diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-02 08:42:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-02 08:42:56 +0900 |
| commit | 92f5c977b42d1322f3cebb260024179e1285b9d0 (patch) | |
| tree | 6152b6491d01c4478de4d5b5a8dbb0ea5e5e33c8 /crates/shirabe/src/installer/plugin_installer.rs | |
| parent | b5d6d91054b9ceef95aef0819bb5c4ef7db1abdd (diff) | |
| download | php-shirabe-92f5c977b42d1322f3cebb260024179e1285b9d0.tar.gz php-shirabe-92f5c977b42d1322f3cebb260024179e1285b9d0.tar.zst php-shirabe-92f5c977b42d1322f3cebb260024179e1285b9d0.zip | |
fix(symfony-console): dispatch parse_token to CompletionInput in bind
PHP's Input::bind() -> ArgvInput::parse() calls $this->parseToken(),
which late-binds to CompletionInput::parseToken; that override swallows
per-token RuntimeExceptions so an incomplete command line still parses.
Delegating CompletionInput::bind to ArgvInput::bind pinned the call to
ArgvInput's parseToken, aborting the whole parse on the first invalid
token and leaving CompletionInput::parse_token dead.
parseToken is protected and not on any trait, so ArgvInput::base_bind
threads the concrete implementation in as a callback instead of a trait
object.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/installer/plugin_installer.rs')
0 files changed, 0 insertions, 0 deletions
