You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#61568 [Console] Harden array type for test-related user inputs (eliashaeussler)
This PR was submitted for the 6.4 branch but it was merged into the 7.4 branch instead.
Discussion
----------
[Console] Harden array type for test-related user inputs
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix #...
| License | MIT
User inputs must be strings, otherwise they cannot be properly written to the `php://memory` stream (because of the `str_contains` check here: https://github.com/symfony/symfony/blob/v6.4.25/src/Symfony/Component/Console/Tester/TesterTrait.php#L173). Using the hardened typed annotation, static code analyzers may assist developers in using correct array values.
Commits
-------
e8ca032 [Console] Harden array type for test-related user inputs
0 commit comments