diff --git a/src/Target/GenericVisitor.php b/src/Target/GenericVisitor.php index 6cd1ea8..47aff3c 100644 --- a/src/Target/GenericVisitor.php +++ b/src/Target/GenericVisitor.php @@ -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);