Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Jul 30, 2024
1 parent 6785408 commit 1b9de03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Context/RequestContextProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 1b9de03

Please sign in to comment.