-
Notifications
You must be signed in to change notification settings - Fork 34
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
fixes overwriting of call #36
Conversation
Jurian are you able to merge this on short notice? I need to stop linking to repo-clones... |
I understand the use case. However, naming is slightly odd. Now is "primaryLanguage" a "method" while "Locale::getPrimaryLanguage" is a "call". If we need to split this, I'd name the argument an |
That would yield, which is just as confusing....
I think as it is is better. As 'primaryLanguage' is a method call to Locale. instead of $call I we could use $function (or even $call_function) as PhpStorm defines 'call_user_func_array' as follows...
|
thoughts? |
Apart from the feature (which is OK, really!), what about describing what the method actually does? In fact, you access a property of a Locale object. So if the method is
|
am i missing something? |
@basz no, merging now. I just don't get any updates when someone updates a PR, so it's easy to overlook these things. Thanks! |
fixes overwriting of call
thanks! |
the argument $method is overwritten but still used in an if statement...