[CORE][Event] Make all events return \EventResult, enforced at container build time
This commit is contained in:
@@ -36,10 +36,11 @@ namespace Plugin\XMPPNotifications;
|
||||
|
||||
use App\Core\Event;
|
||||
use App\Core\Modules\Plugin;
|
||||
use EventResult;
|
||||
|
||||
class XMPPNotifications extends Plugin
|
||||
{
|
||||
public function onAddNotificationTransport(&$form_defs): bool
|
||||
public function onAddNotificationTransport(&$form_defs): EventResult
|
||||
{
|
||||
$form_defs['XMPP'] = $form_defs['placeholder'];
|
||||
$form_defs['XMPP'][] = $form_defs['placeholder']['save']('XMPP', 'save_xmpp');
|
||||
|
||||
Reference in New Issue
Block a user