8000 Simply using the internal index, which is equal · symfony/symfony@c6ac896 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6ac896

Browse files
committed
Simply using the internal index, which is equal
1 parent 5296f01 commit c6ac896

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Symfony/Component/DependencyInjection/Compiler/ServiceAnnotationsPass.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,8 @@ private function getArgumentAnnotationsForMethod(\ReflectionMethod $method)
173173
private function getMethodArguments(\ReflectionMethod $method)
174174
{
175175
$arguments = array();
176-
$i = 0;
177-
foreach ($method->getParameters() as $parameter) {
176+
foreach ($method->getParameters() as $i => $parameter) {
178177
$arguments[$parameter->getName()] = $i;
179-
180-
++$i;
181178
}
182179

183180
return $arguments;

0 commit comments

Comments
 (0)
0