Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Method scanner fixed #5125

Merged
merged 1 commit into from
Nov 18, 2013
Merged

Method scanner fixed #5125

merged 1 commit into from
Nov 18, 2013

Conversation

olekhy
Copy link
Contributor

@olekhy olekhy commented Sep 16, 2013

Method scanner can not utilized because scanning of latest param with array as default value returned not expected value instead a funny string...

Unit test for this case added anyway
$method = $class->getMethod('four');
$paramTwo = $method->getParameter(1);
$optionalValue = $paramTwo->getDefaultValue();
$this->assertEquals('array(array(array(\'default\')))', trim($optionalValue));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoudn't be needed trim here. If there is some unnecesary space in the value should be removed in the implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I'll spend more time to locate where is.

@Maks3w
Copy link
Member

Maks3w commented Oct 21, 2013

@olekhy Did you find time for locate that?

@ghost ghost assigned Maks3w Oct 21, 2013
@olekhy
Copy link
Contributor Author

olekhy commented Oct 21, 2013

not yet I am very busy now. I'm sorry

On Mon, Oct 21, 2013 at 10:58 AM, Maks notifications@github.com wrote:

@olekhy https://github.com/olekhy Did you find time for locate that?


Reply to this email directly or view it on GitHubhttps://github.com//pull/5125#issuecomment-26701468
.

@Maks3w Maks3w merged commit 86fead2 into zendframework:master Nov 18, 2013
Kill0p pushed a commit to Kill0p/zf2 that referenced this pull request Nov 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants