diff --git a/src/NullRejection.php b/src/NullRejection.php index c944c57..63fd84c 100644 --- a/src/NullRejection.php +++ b/src/NullRejection.php @@ -12,12 +12,7 @@ public function initialize(): void } /** @param non-empty-array|object $rejection */ - public function reject(object|array $rejection, null|\Throwable $exception = null): void - { - // NOOP - } - - public function rejectWithReason(Rejection $rejection): void + public function reject(object|array $rejection, null|\Throwable $exception = null, null|string $reason = null): void { // NOOP } diff --git a/src/Rejection.php b/src/Rejection.php deleted file mode 100644 index c7061e8..0000000 --- a/src/Rejection.php +++ /dev/null @@ -1,12 +0,0 @@ -|object $rejection */ - public function reject(object|array $rejection, null|\Throwable $exception = null): void; - - public function rejectWithReason(Rejection $rejection): void; + public function reject(object|array $rejection, null|\Throwable $exception = null, null|string $reason = null): void; public function teardown(): void; }