Skip to content

Commit

Permalink
Passes the Executor instance to the operator as the last parameter of…
Browse files Browse the repository at this point in the history
… it's __invoke method
  • Loading branch information
iainmckay committed Jan 9, 2018
1 parent 42fc542 commit 3374261
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Target/GenericVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ public function visitOperator(AST\Operator $element, &$handle = null, $eldnah =
return $argument->accept($this, $handle, $eldnah);
}, $element->getArguments());

$arguments[] = '$this';

// and either inline the operator call
if ($this->operators->hasInlineOperator($operatorName)) {
$callable = $this->operators->getInlineOperator($operatorName);
Expand Down

0 comments on commit 3374261

Please sign in to comment.