Skip to content

Commit

Permalink
[HttpKernel] Remove unused argument in ArgumentMetadataFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Feb 18, 2022
1 parent af1ed74 commit 56a3290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ControllerMetadata/ArgumentMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function createArgumentMetadata($controller): array
}

foreach ($reflection->getParameters() as $param) {
$arguments[] = new ArgumentMetadata($param->getName(), $this->getType($param, $reflection, $class), $param->isVariadic(), $param->isDefaultValueAvailable(), $param->isDefaultValueAvailable() ? $param->getDefaultValue() : null, $param->allowsNull());
$arguments[] = new ArgumentMetadata($param->getName(), $this->getType($param, $class), $param->isVariadic(), $param->isDefaultValueAvailable(), $param->isDefaultValueAvailable() ? $param->getDefaultValue() : null, $param->allowsNull());
}

return $arguments;
Expand All @@ -48,7 +48,7 @@ public function createArgumentMetadata($controller): array
/**
* Returns an associated type to the given parameter if available.
*/
private function getType(\ReflectionParameter $parameter, \ReflectionFunctionAbstract $function, ?string $class): ?string
private function getType(\ReflectionParameter $parameter, ?string $class): ?string
{
if (!$type = $parameter->getType()) {
return null;
Expand Down

0 comments on commit 56a3290

Please sign in to comment.