From 1b9de03e493c7de6be07dc2a0b12224712f71d64 Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Tue, 30 Jul 2024 11:07:13 +0200 Subject: [PATCH] Fix tests --- src/Context/RequestContextProvider.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Context/RequestContextProvider.php b/src/Context/RequestContextProvider.php index 16a6fd8..306a1f3 100644 --- a/src/Context/RequestContextProvider.php +++ b/src/Context/RequestContextProvider.php @@ -5,6 +5,7 @@ use RuntimeException; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\InputBag; +use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Mime\Exception\InvalidArgumentException; use Throwable; @@ -139,12 +140,12 @@ public function getRequestData(): array { return [ 'queryString' => $this->request->query->all(), - 'body' => $this->getInputSource()->all() + $this->request->query->all(), + 'body' => $this->getInputBag()->all() + $this->request->query->all(), 'files' => $this->getFiles(), ]; } - protected function getInputSource(): InputBag|ParameterBag + protected function getInputBag(): InputBag|ParameterBag { $contentType = $this->request->headers->get('CONTENT_TYPE', 'text/html');