src/Subscriptions/StorageManager.php
public function deleteSubscriber(string $channel): ?Subscriber
    {
        $key = self::SUBSCRIBER_KEY.".{$channel}";
        $hasSubscriber = $this->cache->has($key);

        $subscriber = $this->cache->get($key);

        if ($hasSubscriber) {
            $this->cache->forget($key);
        }

        return $subscriber;
    }
public function deleteSubscriber(string $channel): ?Subscriber
    {
        $key = self::SUBSCRIBER_KEY.".{$channel}";
        $hasSubscriber = $this->cache->has($key);

        $subscriber = $this->cache->get($key);

        if ($hasSubscriber) {
            $this->cache->forget($key);
        }

        return $subscriber;
    }
public function deleteSubscriber ( string $ channel ) : ? Subscriber { $ key = self :: SUBSCRIBER_KEY . ".{$channel}" ; $ hasSubscriber = $ this -> cache -> has ( $ key ) ; $ subscriber = $ this -> cache -> get ( $ key ) ; if ( $ hasSubscriber ) { $ this -> cache -> forget ( $ key ) ; } return $ subscriber ; }
Delete subscriber.

@param  string  $channel
@return \Nuwave\Lighthouse\Subscriptions\Subscriber|null
Delete subscriber .