mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-04 04:24:26 +00:00
Fix phpstan messages.
This commit is contained in:
@@ -39,11 +39,7 @@ class CategoryDestroyService
|
||||
*/
|
||||
public function destroy(Category $category): void
|
||||
{
|
||||
try {
|
||||
$category->delete();
|
||||
} catch (Exception $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
|
||||
// also delete all relations between categories and transaction journals:
|
||||
DB::table('category_transaction_journal')->where('category_id', (int)$category->id)->delete();
|
||||
|
||||
Reference in New Issue
Block a user