-
Notifications
You must be signed in to change notification settings - Fork 240
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
Upgrade to reflection-docblock 3 #263
Conversation
fc44c53
to
3127866
Compare
3127866
to
bb533ff
Compare
/** | ||
* @var Method[] $tagList | ||
*/ | ||
$tagList = isset($phpdoc) ? $phpdoc->getTagsByName('method') : array(); |
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.
I don't like the idea of dealing with codepath where the variable may be defined or no. The code should probably be refactored by moving this inside the try/catch
This PR means that the min requirement of Prophecy is now PHP 5.5 though. and given that PhpSpec still need to support PHP 5.3+ until June, this is not acceptable. |
But currently it means that Prophecy is not usable with Symfony master. As SF 3.1 will be released in May, maybe can we wait June to merge this PR? An alternative is to allow both versions and execute a different logic depending of the installed dependency version. |
So Symfony wants Reflection v3, but Prophecy wants Reflection v2? |
We need to be able to support the two versions, else it will again cause a lot of problems. Based on the small amount of changes that are required, that's fair to abstract it and uses a basic |
I fully agree, will do it ASAP. |
Closing in favor of #264 |
Tests will be green when phpDocumentor/TypeResolver#16 and phpDocumentor/ReflectionDocBlock#72 will be merged.