Fix phpstan messages.

This commit is contained in:
James Cole
2022-12-30 20:25:04 +01:00
parent ee0116f112
commit 445804a7f1
47 changed files with 233 additions and 287 deletions

View File

@@ -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();