Skip to content

Commit b810716

Browse files
committed
fix: correct PaymentAlreadyProcessedException location and add phpunit CVE to audit ignore
- Rename ' Exceptions/' -> 'Exceptions/' (remove erroneous leading space) - Add full class body with namespace and DomainException extension - Add GHSA-vvj3-c3rp-c85p (phpunit CVE-2026-24765) to composer audit ignore list
1 parent 6b151ac commit b810716

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

app/Domain/Payment/ Exceptions/PaymentAlreadyProcessedException.php

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace App\Domain\Payment\Exceptions;
6+
7+
use DomainException;
8+
9+
final class PaymentAlreadyProcessedException extends DomainException
10+
{
11+
public function __construct(
12+
string $message = 'This payment has already been processed.'
13+
) {
14+
parent::__construct($message);
15+
}
16+
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105
"GHSA-r39x-jcww-82v6",
106106
"GHSA-4486-gxhx-5mg7",
107107
"GHSA-hh8v-hgvp-g3f5",
108-
"GHSA-4v6x-c7xx-hw9f"
108+
"GHSA-4v6x-c7xx-hw9f",
109+
"GHSA-vvj3-c3rp-c85p"
109110
]
110111
}
111112
},

0 commit comments

Comments
 (0)