Skip to content

Error feedback: tell the developer they've forgotten to import a class #646

Open
@g105b

Description

@g105b

It's really easy to do, but also really easy to detect:

Gt\ServiceContainer\ServiceNotFoundException - Service can not be located within Container: "Gt\AppLogic\page\_common_php\ContentRepository

This exception mentions _common_php, which is the magic PHP logic file that shouldn't exist in its own namespace, so it's obvious that in this case the developer has put ContentRepository in the go() function parameter, but has forgotten to use App\ContentReposiory at the top of the file.

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