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 from DocBlocks #10

Closed
asgrim opened this issue Jul 1, 2015 · 1 comment
Closed

Discover return types from DocBlocks #10

asgrim opened this issue Jul 1, 2015 · 1 comment

Comments

@asgrim
Copy link
Member

asgrim commented Jul 1, 2015

Using the DocBlocks, we can at least attempt to resolve the return types for functions and methods.

/**
 * @return int|null
 */
public function aMethodReturningInt() { /* ... */ }

Implement a new method getDocBlockReturnTypes() which would return an array of Type objects. In this case, it would return something like a [Types\Integer,Types\Null_]

@asgrim asgrim added this to the 1.0.0 milestone Jul 1, 2015
@GeeH GeeH assigned GeeH and unassigned GeeH Jul 2, 2015
@asgrim asgrim changed the title Discover return types Discover return types from DocBlocks Jul 3, 2015
@asgrim asgrim removed this from the 1.0.0 milestone Jul 5, 2015
@asgrim asgrim added this to the 1.0.0 milestone Aug 18, 2015
@asgrim asgrim self-assigned this Aug 18, 2015
@Ocramius
Copy link
Member

Handled in #104

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

No branches or pull requests

3 participants