diff options
author | Javier Marín <javier@marinros.com> | 2022-05-09 21:13:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 21:13:30 +0300 |
commit | 645f1dfbc6310185b73852c5008ef321b66a0f18 (patch) | |
tree | 2efdfcf4aabeb3c4bc75a80aac7e54dbe68aebe5 /src/NXP/Classes/Token.php | |
parent | b7b46bfc476ea0d22e0e92144f68aa81d390fff0 (diff) |
Two more tests + some code refactoring (#104)
* test: add testNullReturnType and testUnsupportedOperands
* refactor: fix PhpDoc comments and use PHP 7.4 arrow functions
* refactor: fix PHP-CS-Fixer issues
* test: run testUnsupportedOperands() only on PHP8+
Co-authored-by: Javier Marín <contacto@ideatic.net>
Diffstat (limited to 'src/NXP/Classes/Token.php')
-rw-r--r-- | src/NXP/Classes/Token.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/NXP/Classes/Token.php b/src/NXP/Classes/Token.php index b2a0a64..41e4cba 100644 --- a/src/NXP/Classes/Token.php +++ b/src/NXP/Classes/Token.php @@ -24,12 +24,14 @@ class Token public string $type = self::Literal; + public $value; public ?string $name; /** * Token constructor. + * */ public function __construct(string $type, $value, ?string $name = null) { |