From 82d3490f9e4d6eb3b201a388684dc47c0d9c3fc4 Mon Sep 17 00:00:00 2001 From: Ronan Giron Date: Fri, 12 Jul 2024 10:23:15 +0200 Subject: [PATCH] Add missing http methods --- src/DataProvider/FormDataProvider.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/DataProvider/FormDataProvider.php b/src/DataProvider/FormDataProvider.php index dc55f55..ce93765 100644 --- a/src/DataProvider/FormDataProvider.php +++ b/src/DataProvider/FormDataProvider.php @@ -27,9 +27,16 @@ class FormDataProvider implements DataProviderInterface protected function getSubmittedData(ServerRequestInterface $request): array { switch (strtolower($request->getMethod())) { + case 'connect': case 'get': + case 'head': + case 'options': + case 'trace': return $request->getQueryParams(); + case 'delete': + case 'patch': case 'post': + case 'put': $parsedBody = $request->getParsedBody(); false === is_array($parsedBody) && $parsedBody = [];