Skip to content

Commit

Permalink
json can be an array and therefore return value typehint is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kerstinbasilicom committed Nov 17, 2021
1 parent f187d27 commit f2ce657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventListener/JsonSchemaRequestValidatorListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ private function routeShouldBeIgnored(Request $request, FilePathProvider $jsonSc
/**
* @param Request $request
*
* @return stdClass|null
* @return stdClass|array|null
*/
private function getRequestContent(Request $request): ?stdClass
private function getRequestContent(Request $request)
{
$json = $request->getContent();

Expand Down

0 comments on commit f2ce657

Please sign in to comment.