Remove unused argument

This commit is contained in:
Ilyas Salikhov 2024-10-01 17:43:18 +03:00
parent 49f4161b23
commit abbf032483
3 changed files with 3 additions and 4 deletions

View File

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

View File

@ -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()) {

View File

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