From 9864d9572dfbbc56677e66292effc2534f2cbac1 Mon Sep 17 00:00:00 2001 From: Lee McDermott Date: Sun, 6 Jan 2013 02:21:42 +0000 Subject: [PATCH] Not much use in blanking the array each time --- src/Symfony/Component/Console/Helper/DialogHelper.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Symfony/Component/Console/Helper/DialogHelper.php b/src/Symfony/Component/Console/Helper/DialogHelper.php index a49bcde52569..dafda56a02fc 100644 --- a/src/Symfony/Component/Console/Helper/DialogHelper.php +++ b/src/Symfony/Component/Console/Helper/DialogHelper.php @@ -113,7 +113,6 @@ public function ask(OutputInterface $output, $question, $default = null, array $ $output->write("\033[K"); $ret = substr($ret, 0, $i); - $matches = array(); $numMatches = 0; continue; @@ -150,7 +149,6 @@ public function ask(OutputInterface $output, $question, $default = null, array $ break; } - $matches = array(); $numMatches = 0; } @@ -160,7 +158,6 @@ public function ask(OutputInterface $output, $question, $default = null, array $ $ret .= $c; $i++; - $matches = array(); $numMatches = 0; $ofs = 0;