Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Анатолий Нехай authored and Анатолий Нехай committed Jun 8, 2020
1 parent 2525b64 commit 3be2ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/RequestQueryValidationMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected function validate(ServerRequestInterface $request) : void
}

$payload = json_encode($request->getQueryParams());
$payload = json_decode($payload);
$payload = (object) json_decode($payload);

$validator = new Validator();
$validator->validate($payload, $jsonSchema);
Expand Down

0 comments on commit 3be2ae4

Please sign in to comment.