---
title: "analyse/attributes"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

PHP attributes (#[...]). Also in [format](/docs/rules/format/attributes) (3).

**[invalid](/docs/rules/analyse/attributes/invalid)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-arrow-function-attribute](/docs/rules/analyse/attributes/invalid-arrow-function-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-class-attribute](/docs/rules/analyse/attributes/invalid-class-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-class-constant-attribute](/docs/rules/analyse/attributes/invalid-class-constant-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-closure-attribute](/docs/rules/analyse/attributes/invalid-closure-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-constant-attribute](/docs/rules/analyse/attributes/invalid-constant-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-enum-case-attribute](/docs/rules/analyse/attributes/invalid-enum-case-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-function-attribute](/docs/rules/analyse/attributes/invalid-function-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-hook-attribute](/docs/rules/analyse/attributes/invalid-hook-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-method-attribute](/docs/rules/analyse/attributes/invalid-method-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-parameter-attribute](/docs/rules/analyse/attributes/invalid-parameter-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-property-attribute](/docs/rules/analyse/attributes/invalid-property-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[invalid-trait-attribute](/docs/rules/analyse/attributes/invalid-trait-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.

**[trait-as-attribute](/docs/rules/analyse/attributes/trait-as-attribute)**

In the `analyse-basic` preset and every stricter one. Report only.
