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

Better error message for mixed type #10

Open
jakubkulhan opened this issue Sep 25, 2015 · 0 comments
Open

Better error message for mixed type #10

jakubkulhan opened this issue Sep 25, 2015 · 0 comments

Comments

@jakubkulhan
Copy link
Contributor

class AnEntity
{
    /**garbage
     * @var int
     */
    protected $id;
}

Currently the message says "Property AnEntity::$id of type mixed. Either add @var, or @transient annotation." The user is confused, because there is @var annotation. The problem is caused by PHP not recognizing comment as doc comment. Error message should warn that there is no doc comment.

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

1 participant