Commit 63fccc4
committed
bug symfony#61693 [Console] Don’t append a new line to test inputs ending with an EOT (MatTheCat)
This PR was merged into the 6.4 branch.
Discussion
----------
[Console] Don’t append a new line to test inputs ending with an EOT
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | N/A
| License | MIT
symfony#61501 wrote a new line before multiline test inputs’ EOT character, and symfony#61690 wrote it after… so the next input would always be empty.
This PR doesn’t write a new line if a test input ends with `\x4` so that the stream matches the inputs.
Commits
-------
74ae155 [Console] Don’t append a new line to test inputs ending with an EOTFile tree
2 files changed
+7
-3
lines changed- src/Symfony/Component/Console
- Tester
- Tests/Tester
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments