Skip to content

Improve autocompletion for ::class constants #165

Description

@hason

For Doctrine annotations I prefer use ::class constants over strings:

namespace App\Entity;

use App\Entity\User;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity()
 */
class Post
{
    /**
     * @ORM\ManyToOne(targetEntity=User::class, inversedBy="posts")
     */
    private $author;
}

Unfortunately, the autocompletion for properties (posts) doesn't work in this case.

I would like to set in Settings whether I prefer constants or strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions