Lately, the attributes RFC has passed the voting stage. How they are different from DocBlock annotations, and what benefits will they bring?
Consider simple Doctrine entity, before:
/**
* @ORM\Entity
*/
class Entity {
// …
}
After, using native PHP attributes:
#[ORM\Entity]
class Entity {
// …
}