Преглед изворни кода

[OutputEscaper] fixed variable init

Fabien Potencier пре 14 година
родитељ
комит
4cf5b440a9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Symfony/Component/OutputEscaper/ArrayDecorator.php

+ 1 - 1
src/Symfony/Component/OutputEscaper/ArrayDecorator.php

@@ -25,7 +25,7 @@ class ArrayDecorator extends BaseEscaper implements \Iterator, \ArrayAccess, \Co
      *
      * @var int
      */
-    private $count;
+    private $count = 0;
 
     /**
      * Reset the array to the beginning (as required for the Iterator interface).