mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-13 13:09:25 +03:00
iterator_count() should be used against EXSyst\Component\Swagger\Collections\Responses instead of count().
This commit is contained in:
parent
87f40feefc
commit
da1c1e66f8
@ -38,7 +38,7 @@ final class DefaultDescriber implements DescriberInterface
|
|||||||
$operation = $path->getOperation($method);
|
$operation = $path->getOperation($method);
|
||||||
|
|
||||||
// Default Response
|
// Default Response
|
||||||
if (0 === count($operation->getResponses())) {
|
if (0 === iterator_count($operation->getResponses())) {
|
||||||
$defaultResponse = $operation->getResponses()->get('default');
|
$defaultResponse = $operation->getResponses()->get('default');
|
||||||
$defaultResponse->setDescription('');
|
$defaultResponse->setDescription('');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user