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

Discover return types for functions and methods #104

Merged
merged 2 commits into from
Aug 20, 2015

Conversation

asgrim
Copy link
Member

@asgrim asgrim commented Aug 18, 2015

See #10

/* @var $returnTag \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag */
return (new ResolveTypes())->__invoke($returnTag->getTypes(), $context);
}
return [];
Copy link
Member

Choose a reason for hiding this comment

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

Should it be mixed by default?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think so, I don't think we should make any assumptions about return types. If they're there, we return them, if not, we don't. Plain and simple that way - if applications using Better Refletion want to make that assumption, they can do so simply.

@asgrim asgrim assigned asgrim and unassigned Ocramius Aug 19, 2015
@asgrim asgrim changed the title Discover return types for functions and methods [WIP] Discover return types for functions and methods Aug 19, 2015
@asgrim asgrim changed the title [WIP] Discover return types for functions and methods Discover return types for functions and methods Aug 20, 2015
@asgrim asgrim assigned nclundsten and Ocramius and unassigned asgrim and nclundsten Aug 20, 2015
Ocramius added a commit that referenced this pull request Aug 20, 2015
Discover return types for functions and methods
@Ocramius Ocramius merged commit 65a2939 into master Aug 20, 2015
@Ocramius Ocramius deleted the discover-return-types branch August 20, 2015 20:35
@nclundsten
Copy link

@asgrim you trolling with assignees ? :P

@asgrim
Copy link
Member Author

asgrim commented Aug 20, 2015

@nclundsten sorry - clicked the wrong name ^_^

@nclundsten
Copy link

no prob, was just surprised when i started getting notifications

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

Successfully merging this pull request may close these issues.

None yet

3 participants