roslov / psr12ext

PSR-12 Extended Coding Standard
MIT License
3 stars 1 forks source link

Add ReferenceUsedNamesOnly #6

Closed roslov closed 5 months ago

roslov commented 4 years ago

SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly excludes fully qualified namespace references from the class body.

  1. Add the sniff.
  2. Enable searchAnnotations.
  3. Consider not using of FullyQualifiedExceptions.
roslov commented 1 year ago

See defaults in https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Sniffs/Namespaces/ReferenceUsedNamesOnlySniff.php

roslov commented 5 months ago

Added by #42. FullyQualifiedExceptions are not used.