Skip to content

RFC: consider renaming "Annotations" to "Attributes" #750

Description

@andrew-demb

Initially, the term "annotations" was used due to the lack of native PHP support for meta annotations over methods and properties.

After PHP 7, PHP introduced attributes - a native instrument available via PHP reflection to add meta information.

GraphQLite dropped support for Doctrine annotations after #677 (GraphQLite 7)

What about changing naming used everywhere - use attribute instead of annotation?

Examples:

Activity

  1. oojacoboo commented on Jul 8, 2025

    @oojacoboo
    Collaborator

    I agree - PR is welcomed.

  2. oprypkhantc commented on Sep 5, 2025

    @oprypkhantc
    Contributor

    Also dropping the array $attributes first parameter of a lot of the attributes - would be nice :)

  3. oojacoboo commented on Apr 21, 2026

    @oojacoboo
    Collaborator

    Renamed in the docs now with #800. Also Doctrine annotations have been dropped in the latest commits on master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions