Skip to content

Commit 6e63939

Browse files
authored
Merge pull request #191 from utopia-php/fix-nullable-check
2 parents 5aaa94d + 0d7f635 commit 6e63939

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)