8000 [2.7][Console] Count the array instead of · symfony/symfony@95aa167 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95aa167

Browse files
barryvdhfabpot
authored andcommitted
[2.7][Console] Count the array instead of
1 parent 94eb384 commit 95aa167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Style/SymfonyStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function block($messages, $type = null, $style = null, $prefix = ' ', $pa
7373
$message = OutputFormatter::escape($message);
7474
$lines = array_merge($lines, explode("\n", wordwrap($message, $this->lineLength - Helper::strlen($prefix))));
7575

76-
if (count($messages) > 1 && $key < count($message)) {
76+
if (count($messages) > 1 && $key < count($messages) - 1) {
7777
$lines[] = '';
7878
}
7979
}

0 commit comments

Comments
 (0)
0