aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Operator.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/Operator.php
parent906021d27c4630328f68eb635a616774ab1b80e9 (diff)
typed parameters and return types
Diffstat (limited to 'src/NXP/Classes/Operator.php')
-rw-r--r--src/NXP/Classes/Operator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NXP/Classes/Operator.php b/src/NXP/Classes/Operator.php
index 53550a9..c3762ea 100644
--- a/src/NXP/Classes/Operator.php
+++ b/src/NXP/Classes/Operator.php
@@ -52,7 +52,7 @@ class Operator
$this->places = $reflection->getNumberOfParameters();
}
- public function execute(&$stack)
+ public function execute(array &$stack) : Token
{
if (count($stack) < $this->places) {
throw new IncorrectExpressionException();