Explorar o código

[OutputEscaper] fixed variable init

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
4cf5b440a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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).