Skip to content

Commit

Permalink
Added missing type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Oct 12, 2021
1 parent df82446 commit b946611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NodeCompiler/CompileNodeToValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __invoke(Node $node, CompilerContext $context): string|int|float
return $this($node->expr, $context);
}

$constExprEvaluator = new ConstExprEvaluator(function (Node\Expr $node) use ($context) {
$constExprEvaluator = new ConstExprEvaluator(function (Node\Expr $node) use ($context): string|int|float|bool|array|null {
if ($node instanceof Node\Expr\ConstFetch) {
return $this->compileConstFetch($node, $context);
}
Expand Down

0 comments on commit b946611

Please sign in to comment.