Skip to content

[Enhancement] Improve LiteralNamespacesSniff #9

Closed
@lenaorobei

Description

@lenaorobei

Description

LiteralNamespacesSniff should not check class_exists($className) || interface_exists($className).

Expected behavior

Sniff should be rewritten in order to make static check and not rely on loaded Magento classes and interfaces.

Benefits

  1. Sniff will work without Magento instance.
  2. Sniff will work in IDE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedNew rule is acceptedenhancementImprovements to existing rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions