소스 검색

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