Skip to content

Commit 45f99f5

Browse files
author
wjinbo
committed
fix(main): 修复yapi获取参数时重复问题
1 parent 8d71baf commit 45f99f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/yapi/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,6 @@ private function getProperties(\ReflectionClass $reflectionClass): array
216216
if ($reflectionClass->getParentClass()) {
217217
$params = array_merge($params, $this->getProperties($reflectionClass->getParentClass()));
218218
}
219-
return $params;
219+
return array_unique($params);
220220
}
221221
}

0 commit comments

Comments
 (0)