src/AdvanceEventEmitterTrait.php
public function removeListener(string $eventName, callable $listener) : self
    {
        if (array_key_exists($eventName, $this->listeners)) {
            $index = array_search($listener, $this->listeners[$eventName], true);

            if (false !== $index) {
                unset($this->listeners[$eventName][$index]);
            }
        }

        return $this;
    }
public function removeListener(string $eventName, callable $listener) : self
    {
        if (array_key_exists($eventName, $this->listeners)) {
            $index = array_search($listener, $this->listeners[$eventName], true);

            if (false !== $index) {
                unset($this->listeners[$eventName][$index]);
            }
        }

        return $this;
    }
@param string   $eventName
@param callable $listener

@return $this