Haehnchen / idea-php-annotation-plugin

Add PHP annotation support for PhpStorm and IntelliJ
https://plugins.jetbrains.com/plugin/7320
MIT License
251 stars 41 forks source link

Add PHP 8 Attribute generator for supported classes #246

Closed Haehnchen closed 1 year ago

Haehnchen commented 2 years ago

Provide Entity / Doctrine Doctrine generator for PHP 8 Attributes

/**
 * @ORM\Entity(repositoryClass=CrossFarmRepository::class)
 * @ORM\Table(name="cross_farm")
 */
class CrossFarm {}

Based on "a decision" allow generate Attributes instead of DocBlocks

#[ORM\Entity(repositoryClass: CrossFarmRepository::class)]
#[ORM\Table(name: "cross_farm")]
class CrossFarm {}
raziel057 commented 2 years ago

Hello, is this extension intended to also support attributes? (or it should be managed by the IDE as it's a native language feature)

Haehnchen commented 1 year ago

i will add it here; this special libaries features are normally not added to PhpStorm itself.

Haehnchen commented 1 year ago

all added