Skip to content

Commit 0d7f635

Browse files
committed
fix: remove skip during validtion for optional and null values
1 parent 5aaa94d commit 0d7f635

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/App.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -892,10 +892,6 @@ private function runInternal(Request $request, Response $response): static
892892
*/
893893
protected function validate(string $key, array $param, mixed $value): void
894894
{
895-
if ($param['optional'] && \is_null($value)) {
896-
return;
897-
}
898-
899895
$validator = $param['validator']; // checking whether the class exists
900896

901897
if (\is_callable($validator)) {

0 commit comments

Comments
 (0)