File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
Tests/Fixtures/Style/SymfonyStyle Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ private function autoPrependText(): void
375375 {
376376 $ fetched = $ this ->bufferedOutput ->fetch ();
377377 // Prepend new line if last char isn't EOL:
378- if (!str_ends_with ($ fetched , "\n" )) {
378+ if ($ fetched && !str_ends_with ($ fetched , "\n" )) {
379379 $ this ->newLine ();
380380 }
381381 }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use Symfony \Component \Console \Input \InputInterface ;
4+ use Symfony \Component \Console \Output \OutputInterface ;
5+ use Symfony \Component \Console \Style \SymfonyStyle ;
6+
7+ // ensure that nested tags have no effect on the color of the '//' prefix
8+ return function (InputInterface $ input , OutputInterface $ output ) {
9+ $ output = new SymfonyStyle ($ input , $ output );
10+ $ output ->text ('Hello ' );
11+ };
Original file line number Diff line number Diff line change 1+ Hello
Original file line number Diff line number Diff line change 1-
21 * Lorem ipsum dolor sit amet
32 * consectetur adipiscing elit
43
You can’t perform that action at this time.
0 commit comments