Skip to content

Commit

Permalink
Update EvalCallExpression.php
Browse files Browse the repository at this point in the history
  • Loading branch information
KennedyTedesco committed Jul 23, 2023
1 parent b18771f commit 2982658
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Evaluator/EvalCallExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ public function __invoke(CallExpression $callExpression): MonkeyObject
return $this->applyFunction($monkeyObject, $args);
}

public function applyFunction(MonkeyObject $monkeyObject, array $args): MonkeyObject
{
/**
* @param array<MonkeyObject> $args
*/
public function applyFunction(
MonkeyObject $monkeyObject,
array $args,
): MonkeyObject {
if ($monkeyObject instanceof FunctionObject) {
$environment = $this->extendFunctionEnv($monkeyObject, $args);

Expand Down

0 comments on commit 2982658

Please sign in to comment.