From 7aa4c829b797f87a9737214e4fa3853625f41686 Mon Sep 17 00:00:00 2001 From: Floran Brutel Date: Thu, 12 Apr 2018 16:09:22 +0200 Subject: [PATCH] Ignore LINK and UNLINK methods --- Describer/SwaggerPhpDescriber.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Describer/SwaggerPhpDescriber.php b/Describer/SwaggerPhpDescriber.php index 64b44a7..608d10b 100644 --- a/Describer/SwaggerPhpDescriber.php +++ b/Describer/SwaggerPhpDescriber.php @@ -206,6 +206,7 @@ final class SwaggerPhpDescriber implements ModelRegistryAwareInterface $path = $this->normalizePath($route->getPath()); $httpMethods = $route->getMethods() ?: Swagger::$METHODS; $httpMethods = array_map('strtolower', $httpMethods); + $httpMethods = array_intersect($httpMethods, Swagger::$METHODS); yield $method => [$path, $httpMethods]; }