-
-
Notifications
You must be signed in to change notification settings - Fork 113
PresenterComponentReflection::combineArgs() should retype variables i… #100
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
Conversation
|
Nice catch! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change it to simpler $reflection = new ReflectionMethod('MyPresenter', 'myMethod'); ?
|
👍 It's an annoying bug in v2.3.6. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$res[$i]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about I use the foreach instead?
foreach ($method->getParameters() as $i => $param) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the items in $method->getParameters() are indexed by numbers starting from zero then yes, it would be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it returns regular array indexed from zero; I've changed it.
|
@peteruhnak Squash all the commits into one please. |
…n the $res array. [Fixes #99] Use foreach's automatic indexing instead of manual one.
PresenterComponentReflection::combineArgs() should retype variables i…
|
@dg Please when we would expect fixed release v2.3.7 (for orientation)? |
|
Soon. |
…n the $res array. [Fixes #99]