From 95aa167d7c7edcec9eafe02344e9becc4ab15442 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 9 Apr 2015 09:41:35 +0200 Subject: [PATCH] [2.7][Console] Count the array instead of --- src/Symfony/Component/Console/Style/SymfonyStyle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Style/SymfonyStyle.php b/src/Symfony/Component/Console/Style/SymfonyStyle.php index 19d3628d8d..1ccccc9df3 100644 --- a/src/Symfony/Component/Console/Style/SymfonyStyle.php +++ b/src/Symfony/Component/Console/Style/SymfonyStyle.php @@ -73,7 +73,7 @@ class SymfonyStyle extends OutputStyle $message = OutputFormatter::escape($message); $lines = array_merge($lines, explode("\n", wordwrap($message, $this->lineLength - Helper::strlen($prefix)))); - if (count($messages) > 1 && $key < count($message)) { + if (count($messages) > 1 && $key < count($messages) - 1) { $lines[] = ''; } }