diff options
author | Bruce Wells <brucekwells@gmail.com> | 2020-06-04 18:43:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 18:43:16 +0300 |
commit | aa8ffe19f2eb6f194b3e6ee1aac4c2706659e6b9 (patch) | |
tree | 55ef6ebce4cdcb53bfe7cc142ef40f90756d9b6c /src/NXP/Classes/Calculator.php | |
parent | ea898d7a7b85aeb677f81f13784232c99b61808a (diff) |
Variable fixes (#67)V2.0.3
* Reproduce if throws UnknownOperatorException
* Fix variable detection
* Adding IncorrectNumberOfFunctionParametersException
* Removing tabs
* Better exception message text
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 94c6933..bcb4b4e 100644 --- a/src/NXP/Classes/Calculator.php +++ b/src/NXP/Classes/Calculator.php @@ -77,7 +77,7 @@ class Calculator } $result = array_pop($stack); if ($result === null || !empty($stack)) { - throw new IncorrectExpressionException(); + throw new IncorrectExpressionException('Stack must be empty'); } return $result->value; } |