Fix pusher dispatcher return value as boolean
<?php

namespace IrishDan\NotificationBundle\Dispatcher;

use IrishDan\NotificationBundle\Message\MessageInterface;
use IrishDan\NotificationBundle\PusherManager;

class PusherMessageDispatcher implements MessageDispatcherInterface
{
    protected $pusherManager;

    public function __construct(PusherManager $pusherManager)
    {
        $this->pusherManager = $pusherManager;
    }

    public function dispatch(MessageInterface $message)
    {
        // Get the dispatch and message data from the message.
        $dispatchData = $message->getDispatchData();
        $messageData = $message->getMessageData();

        $pusher = $this->pusherManager->getPusherClient();

        $channel = [
            $dispatchData['channel'],
        ];

        return !empty($pusher->trigger($channel, $dispatchData['event'], $messageData));
    }
}
<?php

namespace IrishDan\NotificationBundle\Dispatcher;

use IrishDan\NotificationBundle\Message\MessageInterface;
use IrishDan\NotificationBundle\PusherManager;

class PusherMessageDispatcher implements MessageDispatcherInterface
{
    protected $pusherManager;

    public function __construct(PusherManager $pusherManager)
    {
        $this->pusherManager = $pusherManager;
    }

    public function dispatch(MessageInterface $message)
    {
        // Get the dispatch and message data from the message.
        $dispatchData = $message->getDispatchData();
        $messageData = $message->getMessageData();

        $pusher = $this->pusherManager->getPusherClient();

        $channel = [
            $dispatchData['channel'],
        ];

        return $pusher->trigger($channel, $dispatchData['event'], $messageData);
    }
}