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

DCOM-253: Support use statements for annotations property type #562

Closed
doctrinebot opened this issue Sep 20, 2014 · 1 comment
Closed

DCOM-253: Support use statements for annotations property type #562

doctrinebot opened this issue Sep 20, 2014 · 1 comment
Assignees

Comments

@doctrinebot
Copy link

Jira issue originally created by user enumag:

For example in doctrine/orm there is this annotation class:

namespace Doctrine\ORM\Mapping;

/****
 * @Annotation
 * @Target({"PROPERTY","ANNOTATION"})
 */
final class JoinTable implements Annotation
{
    /****
     * @var string
     */
    public $name;

    /****
     * @var string
     */
    public $schema;

    /****
     * @var array<\Doctrine\ORM\Mapping\JoinColumn>
     */
    public $joinColumns = array();

    /****
     * @var array<\Doctrine\ORM\Mapping\JoinColumn>
     */
    public $inverseJoinColumns = array();
}

Note the @var array<\Doctrine\ORM\Mapping\JoinColumn>. In my opinion @var array<JoinColumn> should be enough here as JoinColumn is in the same namespace. Use statements should also be supported.

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