Skip to content

Feature: warn on FQCN usage #41

@szepeviktor

Description

@szepeviktor
    \DrivingTracker\registerDrive($this); // this is fine because it's fully-qualified

Could we have a sniff that is triggered when FQCN is found?

// If the symbol is a fully-qualified namespace, ignore it
if ($symbol->isAbsoluteNamespace()) {
$this->debug('found absolute namespaced symbol: ' . $symbol->getName());
return;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions