Skip to content

Commit 56a3290

Browse files
committed
[HttpKernel] Remove unused argument in ArgumentMetadataFactory
1 parent af1ed74 commit 56a3290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ControllerMetadata/ArgumentMetadataFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function createArgumentMetadata($controller): array
3939
}
4040

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy