Skip to content

Commit 2b6bfb4

Browse files
committed
Update StringReader.php
* Set a default value for pos * closes issue #285
1 parent 3f7bc5e commit 2b6bfb4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Utils/StringReader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class StringReader
1515
*/
1616
public function __construct($str)
1717
{
18+
$this->pos = 0;
1819
$this->str = $str;
1920
$this->strlen = strlen($this->str);
2021
}

0 commit comments

Comments
 (0)