From f2ce657a1b6f2ce933b52ed840abd62e8666e09c Mon Sep 17 00:00:00 2001 From: "kerstin.gerull" Date: Wed, 17 Nov 2021 17:07:12 +0100 Subject: [PATCH] json can be an array and therefore return value typehint is removed --- src/EventListener/JsonSchemaRequestValidatorListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventListener/JsonSchemaRequestValidatorListener.php b/src/EventListener/JsonSchemaRequestValidatorListener.php index 568e1b8..0691361 100644 --- a/src/EventListener/JsonSchemaRequestValidatorListener.php +++ b/src/EventListener/JsonSchemaRequestValidatorListener.php @@ -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();