codesamplex

サンプル

Preserve input types and values across Symfony Console ArrayInput string serialization, StringInput single-quote escape handling, and ArgvInput re-binding

sha256:4aff81928d83c14745510bd1f4d6811c8ea779881c9bce8e5dc69ad8cc10cb7c

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Preserve input types and values across Symfony Console ArrayInput string serialization, StringInput single-quote escape handling, and ArgvInput re-binding HOW
パッケージ
symfony/console 8.1.4
環境
php
作成日
2026-08-16T14:02:07Z

よくある思い込み

Serializing an ArrayInput instance to a CLI string with __toString() produces argument tokens that preserve boolean flag states and option values when round-tripped through StringInput.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート