From 0d7f6356a00dbe7f7a88555d4e255c5fff83b7c1 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 6 Nov 2025 09:51:56 +0530 Subject: [PATCH] fix: remove skip during validtion for optional and null values --- src/App.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/App.php b/src/App.php index 1302d35..9af02c8 100755 --- a/src/App.php +++ b/src/App.php @@ -892,10 +892,6 @@ private function runInternal(Request $request, Response $response): static */ protected function validate(string $key, array $param, mixed $value): void { - if ($param['optional'] && \is_null($value)) { - return; - } - $validator = $param['validator']; // checking whether the class exists if (\is_callable($validator)) {