From 1ba6016b0023686834d6f6e07faaeacfa242fd6d Mon Sep 17 00:00:00 2001 From: Yuriy Kovalevskiy Date: Mon, 20 May 2024 18:57:36 +0300 Subject: [PATCH] Reset validation result --- src/ValidatedInputTrait.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ValidatedInputTrait.php b/src/ValidatedInputTrait.php index cec5beb..9e27035 100644 --- a/src/ValidatedInputTrait.php +++ b/src/ValidatedInputTrait.php @@ -32,4 +32,9 @@ public function getValidationResult(): Result return $this->validationResult; } + + public function resetValidation(): void + { + $this->validationResult = null; + } }