From 8921c48b320f4485cbb3eed45e20c1a8d7d9f3f3 Mon Sep 17 00:00:00 2001 From: flip111 Date: Fri, 29 Apr 2016 18:29:39 +0200 Subject: [PATCH] Update ApiDocExtractor.php --- Extractor/ApiDocExtractor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extractor/ApiDocExtractor.php b/Extractor/ApiDocExtractor.php index 6d9168e..baaa10c 100644 --- a/Extractor/ApiDocExtractor.php +++ b/Extractor/ApiDocExtractor.php @@ -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