Skip to content

Commit 0b2054c

Browse files
committed
Remove unused assigments
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
1 parent 8f524d7 commit 0b2054c

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/Token.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class Token
185185
*
186186
* @var mixed|string|null
187187
*/
188-
public $keyword;
188+
public $keyword = null;
189189

190190
/**
191191
* The type of this token.
@@ -221,7 +221,6 @@ public function __construct($token, $type = 0, $flags = 0)
221221
$this->token = $token;
222222
$this->type = $type;
223223
$this->flags = $flags;
224-
$this->keyword = null;
225224
$this->value = $this->extract();
226225
}
227226

src/UtfString.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ class UtfString implements ArrayAccess, Stringable
187187
public function __construct($str)
188188
{
189189
$this->str = $str;
190-
$this->byteIdx = 0;
191-
$this->charIdx = 0;
192190
$this->byteLen = mb_strlen($str, '8bit');
193191
if (! mb_check_encoding($str, 'UTF-8')) {
194192
$this->charLen = 0;

0 commit comments

Comments
 (0)