diff --git a/Extractor/Handler/FosRestHandler.php b/Extractor/Handler/FosRestHandler.php index a3b3373..cb394b1 100644 --- a/Extractor/Handler/FosRestHandler.php +++ b/Extractor/Handler/FosRestHandler.php @@ -19,7 +19,7 @@ use FOS\RestBundle\Controller\Annotations\QueryParam; class FosRestHandler implements HandlerInterface { - public function handle(ApiDoc $annotation, $annotations, Route $route, \ReflectionMethod $method) + public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method) { foreach ($annotations as $annot) { if ($annot instanceof RequestParam) { diff --git a/Extractor/Handler/JmsSecurityExtraHandler.php b/Extractor/Handler/JmsSecurityExtraHandler.php index 2c639b4..87dfdc2 100644 --- a/Extractor/Handler/JmsSecurityExtraHandler.php +++ b/Extractor/Handler/JmsSecurityExtraHandler.php @@ -18,7 +18,7 @@ use JMS\SecurityExtraBundle\Annotation\Secure; class JmsSecurityExtraHandler implements HandlerInterface { - public function handle(ApiDoc $annotation, $annotations, Route $route, \ReflectionMethod $method) + public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method) { foreach ($annotations as $annot) { if ($annot instanceof Secure) { diff --git a/Extractor/Handler/SensioFrameworkExtraHandler.php b/Extractor/Handler/SensioFrameworkExtraHandler.php index 55eac5c..5e5afc9 100644 --- a/Extractor/Handler/SensioFrameworkExtraHandler.php +++ b/Extractor/Handler/SensioFrameworkExtraHandler.php @@ -18,7 +18,7 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache; class SensioFrameworkExtraHandler implements HandlerInterface { - public function handle(ApiDoc $annotation, $annotations, Route $route, \ReflectionMethod $method) + public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method) { foreach ($annotations as $annot) { if ($annot instanceof Cache) { diff --git a/Extractor/HandlerInterface.php b/Extractor/HandlerInterface.php index ae2f475..37a5e74 100644 --- a/Extractor/HandlerInterface.php +++ b/Extractor/HandlerInterface.php @@ -12,7 +12,6 @@ namespace Nelmio\ApiDocBundle\Extractor; use Nelmio\ApiDocBundle\Annotation\ApiDoc; - use Symfony\Component\Routing\Route; interface HandlerInterface @@ -25,5 +24,5 @@ interface HandlerInterface * @param Symfony\Component\Routing\Route $route * @param ReflectionMethod $method */ - public function handle(ApiDoc $annotation, $annotations, Route $route, \ReflectionMethod $method); + public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method); }