Merge pull request 'Replace deprecated trigger_error calls with exceptions' (#52) from trigger-error into master

Reviewed-on: #52
This commit was merged in pull request #52.
This commit is contained in:
Aaron committed 2025-02-26 15:29:13 +01:00
commit 13cbe08219
7 files changed
+26 -26

No files matched your search

+1 -1
View File
@@ -281,7 +281,7 @@ class Tag
$data);
if (!$res)
trigger_error('Could not create the requested tag.', E_USER_ERROR);
throw new Exception('Could not create the requested tag.');
$data['id_tag'] = $db->insert_id();
return $return_format === 'object' ? new Tag($data) : $data;