public function removeVisitor(ExpressionVisitor $visitor)
    {
        while (false !== ($key = array_search($visitor, $this->visitors, true))) {
            unset($this->visitors[$key]);
        }

        $this->visitors = array_values($this->visitors);
    }
public function removeVisitor(ExpressionVisitor $visitor)
    {
        while (false !== ($key = array_search($visitor, $this->visitors, true))) {
            unset($this->visitors[$key]);
        }

        $this->visitors = array_values($this->visitors);
    }
public function removeVisitor ( ExpressionVisitor $ visitor ) { while ( false !== ( $ key = array_search ( $ visitor , $ this -> visitors , true ) ) ) { unset ( $ this -> visitors [ $ key ] ) ; } $ this -> visitors = array_values ( $ this -> visitors ) ; }
Removes a visitor from the traverser.

If the visitor was added multiple times, all instances are removed.

@param ExpressionVisitor $visitor The visitor to remove.
Removes a visitor from the traverser .