src/Authentication.php
private function &triggerEvent($event_name, ...$arguments)
    {
        $property_name = "on_{$event_name}";

        /** @var callable $handler */
        foreach ($this->$property_name as $handler) {
            call_user_func_array($handler, $arguments);
        }

        return $this;
    }
private function &triggerEvent($event_name, ...$arguments)
    {
        $property_name = "on_{$event_name}";

        /** @var callable $handler */
        foreach ($this->$property_name as $handler) {
            call_user_func_array($handler, $arguments);
        }

        return $this;
    }
Trigger an internal event.

@param  string $event_name
@param  array  $arguments
@return $this