8000 [WIP] Annotation support for Services by weaverryan · Pull Request #21376 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WIP] Annotation support for Services #21376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simply using the internal index, which is equal
  • Loading branch information
weaverryan committed Jan 23, 2017
commit c6ac8962ccf9d9325f6a919b6e7ad7cf4a3df7f2
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,8 @@ private function getArgumentAnnotationsForMethod(\ReflectionMethod $method)
private function getMethodArguments(\ReflectionMethod $method)
{
$arguments = array();
$i = 0;
foreach ($method->getParameters() as $parameter) {
foreach ($method->getParameters() as $i => $parameter) {
$arguments[$parameter->getName()] = $i;

++$i;
}

return $arguments;
Expand Down
0