Skip to content

Attributes in documentation #177

Closed
@carlos-granados

Description

@carlos-granados

Currently there is no mention at all about PHP Attributes in the documentation but you should be able to use them everywhere that Behat uses annotations. We should include documentation about Attributes. There are two options:

  • Keep the bulk of the documentation using annotations and just make sure that we mention in some places that attributes can be used instead of annotations with examples
  • Move all the documentation to use attributes and just mention that you can use annotations instead with examples

Given the global trend in the PHP world to use attributes everywhere, I lean towards the second option but would like to hear the opinion of others.

As a reference, PHPUnit documentation now uses attributes everywhere and just provides a section on annotations

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