Skip to content

Commit

Permalink
fixed getBodyParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Flávio Briz authored and Quentin Schuler committed Oct 2, 2017
1 parent 33790a4 commit 879cb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Specification/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function getParameters()
*/
public function getBodyParameter()
{
foreach ($this->parameters as $parameter) {
foreach ($this->parameters->getParameters() as $parameter) {
if ($parameter->getIn() === 'body') {
return $parameter;
}
Expand Down

0 comments on commit 879cb67

Please sign in to comment.