[ticket/17493] Remove not needed function in migration and fix type hinting

PHPBB-17493
This commit is contained in:
Marc Alexander 2025-04-20 07:55:28 +02:00
parent 5ab0446eb1
commit 27550ce59b
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 1 additions and 15 deletions

View file

@ -101,7 +101,7 @@ class remove_jabber extends migration
];
}
public function move_jabber_to_email_notifications(int $start = 0)
public function move_jabber_to_email_notifications(?int $start = 0)
{
$limit = 1000;

View file

@ -47,18 +47,4 @@ class remove_notify_type extends migration
]
];
}
public function update_data()
{
return [
['custom', [[$this, 'remove_jabber_user_notifications']]],
];
}
protected function remove_jabber_user_notifications(): void
{
$sql = 'DELETE FROM ' . $this->tables['user_notifications'] . "
WHERE method = 'notification.method.jabber'";
$this->db->sql_query($sql);
}
}