aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Calculator.php
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2020-05-20 04:52:26 +0300
committerBruce Wells <brucekwells@gmail.com>2020-05-20 05:17:03 +0300
commit1bb9f61423c1eed320e95a1288a146ece410e1f9 (patch)
tree0f0b86ec802a3bbb1d138b182df30e5a5067fc5c /src/NXP/Classes/Calculator.php
parent906021d27c4630328f68eb635a616774ab1b80e9 (diff)
typed parameters and return types
Diffstat (limited to 'src/NXP/Classes/Calculator.php')
-rw-r--r--src/NXP/Classes/Calculator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NXP/Classes/Calculator.php b/src/NXP/Classes/Calculator.php
index 0db49e1..c6ccff1 100644
--- a/src/NXP/Classes/Calculator.php
+++ b/src/NXP/Classes/Calculator.php
@@ -49,7 +49,7 @@ class Calculator
* @throws IncorrectExpressionException
* @throws UnknownVariableException
*/
- public function calculate($tokens, $variables)
+ public function calculate(array $tokens, array $variables)
{
/** @var Token[] $stack */
$stack = [];