8000 minor #45477 [HttpKernel] Remove unused argument in ArgumentMetadataF… · symfony/symfony@57a078b · GitHub
[go: up one dir, main page]

Skip to content

Commit 57a078b

Browse files
minor #45477 [HttpKernel] Remove unused argument in ArgumentMetadataFactory (fancyweb)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpKernel] Remove unused argument in ArgumentMetadataFactory | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Leftover from #45462, spotted it while trying to merge up. Commits ------- dbe29de [HttpKernel] Remove unused argument in ArgumentMetadataFactory
2 parents 68bba41 + dbe29de commit 57a078b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpKernel/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)
0