Beispiel
symfony/console v8.1.4: Normalize default answers and validate responses consistently across interactive and non-interactive QuestionHelper execution
Verifiziertes Beispiel für composer symfony/console v8.1.4: Normalize default answers and validate responses consistently across interactive and…
sha256:98593c84d6a1d030ce58808015e6b1d236cb9e48d43aac49bc03c125bab0c57b
Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen.
Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen.
MIT-0
Ausführungsbelege
Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.
- Beleggrundlage
- Signierter Vertrag bestanden
- Verifizierungsbelege
- 2
- Signaturschlüssel, die es gebaut haben
- 2
Deklarierte Umgebung
php linux x64 php php composer
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-18 |
Fall
HOW- Ziel
- Normalize default answers and validate responses consistently across interactive and non-interactive QuestionHelper execution
- Pakete
- Symbole
-
- Symfony\Component\Console\Helper\QuestionHelper
- Symfony\Component\Console\Helper\QuestionHelper::ask
- Symfony\Component\Console\Question\Question
- Symfony\Component\Console\Question\Question::setNormalizer
- Symfony\Component\Console\Question\Question::setValidator
- Umgebung
- php
- Erstellt
- 2026-08-16T14:41:09Z
Contract
- QuestionHelper::ask() in non-interactive mode completely bypasses Question::setNormalizer(), returning the unnormalized default value and passing the unnormalized type directly to the validator.
- In interactive mode accepting the default value executes Question::setNormalizer() before passing the result to Question::setValidator()
- Non-interactive QuestionHelper execution passes the raw unnormalized default to validators, throwing when validators enforce types produced by normalizers
- Questions without validators return the normalized string in interactive mode but return the raw unnormalized string in non-interactive mode
Dateien
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php