src/Viserio/Component/Events/EventManager.php
public function trigger($event, $target = null, array $argv = []): bool
    {
        if ((! \is_object($event) && ! ($event instanceof EventContract)) && \is_string($event)) {
            $event = new Event($event, $target, $argv);
        }

        if ($event->isPropagationStopped()) {
            return false;
        }

        $listeners = $this->getListeners($event->getName());

        foreach ($listeners as $listener) {
            $result = false;

            if ($listener !== null) {
                $result = $listener($event);
            }

            if ($result === false) {
                return false;
            }
        }

        return true;
    }
public function trigger($event, $target = null, array $argv = []): bool
    {
        if ((! \is_object($event) && ! ($event instanceof EventContract)) && \is_string($event)) {
            $event = new Event($event, $target, $argv);
        }

        if ($event->isPropagationStopped()) {
            return false;
        }

        $listeners = $this->getListeners($event->getName());

        foreach ($listeners as $listener) {
            $result = false;

            if ($listener !== null) {
                $result = $listener($event);
            }

            if ($result === false) {
                return false;
            }
        }

        return true;
    }
{@inheritdoc}