Skip to content

Commit

Permalink
Merge pull request #464 from kamil-tekiela/Unused-assigments
Browse files Browse the repository at this point in the history
Remove unused assignments
  • Loading branch information
MauricioFauth committed Jun 7, 2023
2 parents ff59be1 + 0b2054c commit ee2118c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/Token.php
Expand Up @@ -185,7 +185,7 @@ class Token
*
* @var mixed|string|null
*/
public $keyword;
public $keyword = null;

/**
* The type of this token.
Expand Down Expand Up @@ -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();
}

Expand Down
2 changes: 0 additions & 2 deletions src/UtfString.php
Expand Up @@ -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;
Expand Down

0 comments on commit ee2118c

Please sign in to comment.