浏览代码

[Console] fixed typo

Fabien Potencier 15 年之前
父节点
当前提交
fc72050eeb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Components/Console/Input/ArgvInput.php

+ 1 - 1
src/Symfony/Components/Console/Input/ArgvInput.php

@@ -70,7 +70,7 @@ class ArgvInput extends Input
   protected function parse()
   {
     $this->parsed = $this->tokens;
-    while ($token = array_shift($this->parsed))
+    while (null !== $token = array_shift($this->parsed))
     {
       if ('--' === substr($token, 0, 2))
       {