Преглед на файлове

Removed the check that prevented GET endpoint handlers from supporting the @bodyParams annotation.

Sam Mettam преди 3 години
родител
ревизия
de6dbbf302
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      src/Extracting/Extractor.php

+ 0 - 3
src/Extracting/Extractor.php

@@ -161,9 +161,6 @@ class Extractor
 
     protected function fetchBodyParameters(ExtractedEndpointData $endpointData, array $rulesToApply): void
     {
-        if (in_array('GET', $endpointData->httpMethods)) {
-            return;
-        }
         $this->iterateThroughStrategies('bodyParameters', $endpointData, $rulesToApply, function ($results) use ($endpointData) {
             foreach ($results as $key => $item) {
                 if (empty($item['name'])) {