Skip to content
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

Dropping default value for __call #52

Merged
merged 1 commit into from
Mar 17, 2014
Merged

Dropping default value for __call #52

merged 1 commit into from
Mar 17, 2014

Conversation

rdohms
Copy link
Contributor

@rdohms rdohms commented Mar 17, 2014

The __call method's $args parameter is required and will always be present as an array (http://www.php.net/manual/en/language.oop5.overloading.php#object.call), adding a default value (like $args = array()) is not needed and even causes problems, as described in mockery/mockery#263.

Removing this allows us to manipulate the object as expected.

The `__call` method's `$args` parameter is required and will always be present as an array (http://www.php.net/manual/en/language.oop5.overloading.php#object.call), adding a default value (like `$args = array()`) is not needed and even causes problems, as described in mockery/mockery#263.

Removing this allows us to manipulate the object as expected.
@cordoval
Copy link

should we add a test or even throw an exception if the array is empty?

@k-k
Copy link
Collaborator

k-k commented Mar 17, 2014

@rdohms this was addressed in #50 which was awaiting a merge.

@aequasi - I was going to merge this change, but would require you to merge master on your PR branch

@rdohms
Copy link
Contributor Author

rdohms commented Mar 17, 2014

@kmfk anyway we can avoid the 15 day waiting period on that? Would you consider this a BC? and if not, should this no be a bug fix release that goes out asap?

@k-k
Copy link
Collaborator

k-k commented Mar 17, 2014

@rdohms - nah, this isnt a BC at all. will be merging now, just wanted to notify @aequasi, then got pulled into some other work.

k-k pushed a commit that referenced this pull request Mar 17, 2014
Dropping default value for __call
@k-k k-k merged commit f53da8e into keenlabs:master Mar 17, 2014
@rdohms rdohms deleted the patch-1 branch March 17, 2014 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants