From https://www.drupal.org/docs/develop/coding-standards/namespaces

When importing a class with "use", do not include a leading \. (The PHP documentation makes the same recommendation.)

Add a sniff + fixer for this.

Comments

klausi created an issue. See original summary.

klausi’s picture

Status: Active » Fixed

Committed a sniff for this.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.