サンプル
Configure ANSI decoration, interactivity, and output verbosity in Symfony Console via NO_COLOR, FORCE_COLOR, SHELL_VERBOSITY and COLUMNS environment variables without presence-only truthiness or quiet-mode silencing traps
sha256:daa9d0d39f0c0c2c98dd7a96aa84ddffba6366d269e338ad0e2fc99133d716ea
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Configure ANSI decoration, interactivity, and output verbosity in Symfony Console via NO_COLOR, FORCE_COLOR, SHELL_VERBOSITY and COLUMNS environment variables without presence-only truthiness or quiet-mode silencing traps HOW
- パッケージ
- symfony/console 7.4.16
- 環境
- php
- 作成日
- 2026-08-16T08:53:54Z
コントラクト
- StreamOutput disables color when NO_COLOR is non-empty even if set to '0' or 'false'
- StreamOutput forces color on when FORCE_COLOR is set even if set to '0' or 'false'
- StreamOutput prioritizes NO_COLOR over FORCE_COLOR when both are set
- StreamOutput prioritizes $_SERVER over getenv for NO_COLOR and FORCE_COLOR overrides
- Application configureIO forces input interactivity to false when SHELL_VERBOSITY is negative or -q is passed
- Application configureIO propagates SHELL_VERBOSITY to getenv, $_ENV, and $_SERVER during command execution
- Application restores previous SHELL_VERBOSITY environment state after run completes
- Terminal getWidth uses COLUMNS integer value directly without falling back to 80 on zero or invalid strings
ファイル
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9