You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
From @doctrinebot on September 20, 2014 12:23
Jira issue originally created by user enumag:
For example in doctrine/orm there is this annotation class:
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.Copied from original issue: doctrine/common#562
The text was updated successfully, but these errors were encountered: