Merge pull request #1104 from tamcy/master

PHP 7.2 compatibility fix
This commit is contained in:
Guilhem Niot 2017-10-12 07:15:04 +02:00 committed by GitHub
commit 3e98b9fe97

View File

@ -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('');
}