From 7e769c0b37c90c8aa899aa0f54790d35cfa543b7 Mon Sep 17 00:00:00 2001 From: sebprt Date: Fri, 20 Oct 2023 15:46:00 +0200 Subject: [PATCH 1/2] Added a class to manage rejections with a given reason --- src/RejectionWithReasonInterface.php | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/RejectionWithReasonInterface.php diff --git a/src/RejectionWithReasonInterface.php b/src/RejectionWithReasonInterface.php new file mode 100644 index 0000000..7798091 --- /dev/null +++ b/src/RejectionWithReasonInterface.php @@ -0,0 +1,11 @@ + Date: Fri, 20 Oct 2023 13:47:02 +0000 Subject: [PATCH 2/2] [rector] Rector fixes --- src/RejectionWithReasonInterface.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/RejectionWithReasonInterface.php b/src/RejectionWithReasonInterface.php index 7798091..a8aedf7 100644 --- a/src/RejectionWithReasonInterface.php +++ b/src/RejectionWithReasonInterface.php @@ -6,6 +6,5 @@ interface RejectionWithReasonInterface extends RejectionInterface { - /** @param array|object $rejection */ public function rejectWithReason(object|array $rejection, string $reason, null|\Throwable $exception = null): void; }