aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Token.php
diff options
context:
space:
mode:
authorJavier Marín <javier@marinros.com>2022-05-09 21:13:30 +0300
committerGitHub <noreply@github.com>2022-05-09 21:13:30 +0300
commit645f1dfbc6310185b73852c5008ef321b66a0f18 (patch)
tree2efdfcf4aabeb3c4bc75a80aac7e54dbe68aebe5 /src/NXP/Classes/Token.php
parentb7b46bfc476ea0d22e0e92144f68aa81d390fff0 (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.php2
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)
{