diff --git a/src/Token.php b/src/Token.php index aee849359..27b0f6371 100644 --- a/src/Token.php +++ b/src/Token.php @@ -185,7 +185,7 @@ class Token * * @var mixed|string|null */ - public $keyword; + public $keyword = null; /** * The type of this token. @@ -221,7 +221,6 @@ public function __construct($token, $type = 0, $flags = 0) $this->token = $token; $this->type = $type; $this->flags = $flags; - $this->keyword = null; $this->value = $this->extract(); } diff --git a/src/UtfString.php b/src/UtfString.php index f8fd3503d..18df4dd3b 100644 --- a/src/UtfString.php +++ b/src/UtfString.php @@ -187,8 +187,6 @@ class UtfString implements ArrayAccess, Stringable public function __construct($str) { $this->str = $str; - $this->byteIdx = 0; - $this->charIdx = 0; $this->byteLen = mb_strlen($str, '8bit'); if (! mb_check_encoding($str, 'UTF-8')) { $this->charLen = 0;