src/ObserverQueue.php
public function detach(ObserverInterface $observer): void
    {
        $key = spl_object_hash($observer);

        unset($this->observers[$key]);
    }
public function detach(ObserverInterface $observer): void
    {
        $key = spl_object_hash($observer);

        unset($this->observers[$key]);
    }
public function detach ( ObserverInterface $ observer ) : void { $ key = spl_object_hash ( $ observer ) ; unset ( $ this -> observers [ $ key ] ) ; }
detaches an observer from the observable.

@param ObserverInterface $observer
@return void
detaches an observer from the observable .