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

ResolveTypes invokable now requires Context always #33

Merged
merged 2 commits into from
Jul 7, 2015

Conversation

asgrim
Copy link
Member

@asgrim asgrim commented Jul 3, 2015

Fixes #31. I managed to fix this without requiring #29 and #30 to be done by using a dummy context (which is what phpDocumentor does internally), which means we can fix the API early, and implement #29 and #30 independently (once this is merged at least).

@asgrim asgrim added the bug label Jul 3, 2015
@asgrim asgrim added this to the 1.0.0 milestone Jul 3, 2015
@@ -26,7 +27,7 @@ public function __invoke(ReflectionFunctionAbstract $function, ParamNode $node)
foreach ($paramTags as $paramTag) {
/* @var $paramTag \phpDocumentor\Reflection\DocBlock\Tag\ParamTag */
if ($paramTag->getVariableName() === '$' . $node->name) {
return (new ResolveTypes())->__invoke($paramTag->getTypes());
return (new ResolveTypes())->__invoke($paramTag->getTypes(), new Context(''));
Copy link
Member

Choose a reason for hiding this comment

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

Empty context? Add a @TODO comment

@asgrim
Copy link
Member Author

asgrim commented Jul 7, 2015

@Ocramius I have added @todo's

Ocramius added a commit that referenced this pull request Jul 7, 2015
ResolveTypes invokable now requires Context always
@Ocramius Ocramius merged commit c1db79c into master Jul 7, 2015
@Ocramius Ocramius deleted the resolve-types-require-context branch July 7, 2015 08:18
@Ocramius
Copy link
Member

Ocramius commented Jul 7, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Context should be required parameter in ResolveTypes type finder
2 participants