Update ApiDocExtractor.php

This commit is contained in:
flip111 2016-04-29 18:29:39 +02:00
parent 2d214fc934
commit 8921c48b32

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