Skip to content

Allow \Drupal::setContainer when inspecting static calls to \Drupal #102

@mglaman

Description

@mglaman

Unit tests will mock the service container and often call \Drupal::setContainer. The GlobalDrupalDependencyInjectionRule rule should ignore calls to \Drupal when the method is setContainer or unsetContainer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions