aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Token.php
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2022-12-22 02:52:18 +0300
committerGitHub <noreply@github.com>2022-12-22 02:52:18 +0300
commit7704ba918fbbacfd40a87725b2e01fde58b186d0 (patch)
treebd9889db81eaca0e8dc8be46303ea75d9cbf58ac /src/NXP/Classes/Token.php
parentc59f4cd15317754d2b50bd4bff2243012e815790 (diff)
Drop php74 (#120)
* PHPStan Level 6 * Drop PHP 7.4 support * Add PHPStan badge to readme * Code style cleanup
Diffstat (limited to 'src/NXP/Classes/Token.php')
-rw-r--r--src/NXP/Classes/Token.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/NXP/Classes/Token.php b/src/NXP/Classes/Token.php
index 7532e77..ae460a9 100644
--- a/src/NXP/Classes/Token.php
+++ b/src/NXP/Classes/Token.php
@@ -22,22 +22,13 @@ class Token
public const Space = 'space';
- public string $type = self::Literal;
-
- public $value;
-
- public ?string $name;
-
public ?int $paramCount = null;//to store function parameter count in stack
/**
* Token constructor.
*
*/
- public function __construct(string $type, $value, ?string $name = null)
+ public function __construct(public string $type, public mixed $value, public ?string $name = null)
{
- $this->type = $type;
- $this->value = $value;
- $this->name = $name;
}
}