From fcd4d8fa2ad55e4a4ee7874f948e62c2b3f8167c Mon Sep 17 00:00:00 2001 From: Jelte Werkhoven Date: Thu, 25 Feb 2016 15:14:37 +0100 Subject: [PATCH] Allow filter descriptions to be used in conjunction with POST/PUT input descriptions --- Annotation/ApiDoc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Annotation/ApiDoc.php b/Annotation/ApiDoc.php index 0b48c3b..3707c9b 100644 --- a/Annotation/ApiDoc.php +++ b/Annotation/ApiDoc.php @@ -174,7 +174,9 @@ class ApiDoc if (isset($data['input'])) { $this->input = $data['input']; - } elseif (isset($data['filters'])) { + } + + if (isset($data['filters'])) { foreach ($data['filters'] as $filter) { if (!isset($filter['name'])) { throw new \InvalidArgumentException('A "filter" element has to contain a "name" attribute');