mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +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);
|
||||
|
||||
// Default Response
|
||||
if (0 === count($operation->getResponses())) {
|
||||
if (0 === iterator_count($operation->getResponses())) {
|
||||
$defaultResponse = $operation->getResponses()->get('default');
|
||||
$defaultResponse->setDescription('');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user