Przeglądaj źródła

[OutputEscaper] fixed variable init

Fabien Potencier 14 lat temu
rodzic
commit
4cf5b440a9

+ 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).