diff --git a/Extractor/Handler/PhpDocHandler.php b/Extractor/Handler/PhpDocHandler.php index 42c475d..f27b5f1 100644 --- a/Extractor/Handler/PhpDocHandler.php +++ b/Extractor/Handler/PhpDocHandler.php @@ -54,12 +54,17 @@ class PhpDocHandler implements HandlerInterface 'description' => '', ); } - if ('_scheme' == $name) { + + if ('_scheme' === $name) { $https = ('https' == $value); $annotation->setHttps($https); } } + if (method_exists($route, 'getSchemes')) { + $annotation->setHttps(in_array('https', $route->getSchemes())); + } + $paramDocs = array(); foreach (explode("\n", $this->commentExtractor->getDocComment($method)) as $line) { if (preg_match('{^@param (.+)}', trim($line), $matches)) {