Fix(CI): phpstan (#109)

This commit is contained in:
Romain B.
2025-10-03 14:57:54 +02:00
committed by GitHub
parent 69426cded6
commit c21b23e716
7 changed files with 38 additions and 21 deletions

View File

@@ -624,12 +624,11 @@ function plugin_example_uninstall()
ProfileRight::deleteProfileRights([Example::$rightname]);
$notif = new Notification();
$options = ['itemtype' => 'Ticket',
'event' => 'plugin_example',
'FIELDS' => 'id'];
foreach ($DB->request('glpi_notifications', $options) as $data) {
$notif->delete($data);
}
$notif->deleteByCriteria([
'itemtype' => 'Ticket',
'event' => 'plugin_example',
'FIELDS' => 'id',
]);
// Old version tables
if ($DB->tableExists('glpi_dropdown_plugin_example')) {
$query = 'DROP TABLE `glpi_dropdown_plugin_example`';