diff options
author | Alexander Kiryukhin <alexander@kiryukhin.su> | 2018-09-06 20:41:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-06 20:41:20 +0300 |
commit | 2a629d37dda54f8a8d559473a5167b512910f75b (patch) | |
tree | 954c50f2644212742442e0027efb081620d2a109 /src/NXP/Classes/Calculator.php | |
parent | aa1a092a9e231e8f923ab40365dff092c2908903 (diff) | |
parent | 7b657db13f0b76432ca0039e45f4b8f5e09879c2 (diff) |
Merge pull request #27 from NeonXP/devv0.3
Dev
Diffstat (limited to 'src/NXP/Classes/Calculator.php')
-rw-r--r-- | src/NXP/Classes/Calculator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NXP/Classes/Calculator.php b/src/NXP/Classes/Calculator.php index 41e0d9f..b584d69 100644 --- a/src/NXP/Classes/Calculator.php +++ b/src/NXP/Classes/Calculator.php @@ -40,7 +40,7 @@ class Calculator if ($token instanceof TokenVariable) { $variable = $token->getValue(); if (!array_key_exists($variable, $variables)) { - throw new UnknownVariableException(); + throw new UnknownVariableException($variable); } $value = $variables[$variable]; array_push($stack, new TokenNumber($value)); |