public function addNewType($newType) { if ($this->returnType != CompiledExpression::VOID) { $this->returnType = $this->returnType | $newType; } else { $this->returnType = $newType; } }