Sfoglia il codice sorgente

[OutputEscaper] fixed variable init

Fabien Potencier 14 anni fa
parent
commit
4cf5b440a9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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).