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)) {