Merge pull request #841 from flip111/patch-1

Update ApiDocExtractor.php
This commit is contained in:
Guilhem N 2016-12-29 12:21:15 +01:00 committed by GitHub
commit b01128dc13

View File

@ -324,9 +324,9 @@ class ApiDocExtractor
if ('PATCH' === $annotation->getMethod()) {
// All parameters are optional with PATCH (update)
array_walk($parameters, function ($val, $key) use (&$parameters) {
foreach ($parameters as $key => $val) {
$parameters[$key]['required'] = false;
});
}
}
// merge parameters with parameters block from ApiDoc annotation in controller method