Skip to content

Commit 7b0ac58

Browse files
wouterjnicolas-grekas
authored andcommitted
Add remaining missing return types to safe methods
1 parent 222eb3c commit 7b0ac58

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Node/ConditionalNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function compile(Compiler $compiler): void
4040
;
4141
}
4242

43-
public function evaluate(array $functions, array $values)
43+
public function evaluate(array $functions, array $values): mixed
4444
{
4545
if ($this->nodes['expr1']->evaluate($functions, $values)) {
4646
return $this->nodes['expr2']->evaluate($functions, $values);

Node/FunctionNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function compile(Compiler $compiler): void
4040
$compiler->raw($function['compiler'](...$arguments));
4141
}
4242

43-
public function evaluate(array $functions, array $values)
43+
public function evaluate(array $functions, array $values): mixed
4444
{
4545
$arguments = [$values];
4646
foreach ($this->nodes['arguments']->nodes as $node) {

Node/UnaryNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function compile(Compiler $compiler): void
4545
;
4646
}
4747

48-
public function evaluate(array $functions, array $values)
48+
public function evaluate(array $functions, array $values): mixed
4949
{
5050
$value = $this->nodes['node']->evaluate($functions, $values);
5151

0 commit comments

Comments
 (0)