mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
Remove unused argument
This commit is contained in:
parent
49f4161b23
commit
abbf032483
@ -477,9 +477,8 @@ class ApiDocExtractor
|
||||
*/
|
||||
protected function parseAnnotations(ApiDoc $annotation, Route $route, \ReflectionMethod $method): void
|
||||
{
|
||||
$annots = $this->reader->getMethodAnnotations($method);
|
||||
foreach ($this->handlers as $handler) {
|
||||
$handler->handle($annotation, $annots, $route, $method);
|
||||
$handler->handle($annotation, $route, $method);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ class PhpDocHandler implements HandlerInterface
|
||||
$this->commentExtractor = $commentExtractor;
|
||||
}
|
||||
|
||||
public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method): void
|
||||
public function handle(ApiDoc $annotation, Route $route, \ReflectionMethod $method): void
|
||||
{
|
||||
// description
|
||||
if (null === $annotation->getDescription()) {
|
||||
|
@ -19,5 +19,5 @@ interface HandlerInterface
|
||||
/**
|
||||
* Parse route parameters in order to populate ApiDoc.
|
||||
*/
|
||||
public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method);
|
||||
public function handle(ApiDoc $annotation, Route $route, \ReflectionMethod $method);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user