Skip to content

[Restoration] Remove ::class references to strings #1930

@TomasVotruba

Description

@TomasVotruba

Use case

  • sometimes you remove a packages, that used only ::class references, e.g. EntityManager::class in your code
  • after than, it needs to be resolved back to string, e.g.
use App\EntityManager;

-EntityManager::class
+'App\EntityManager'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions