Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
g105b opened this issue Feb 8, 2024 · 0 comments
Open
Projects

Comments

@g105b
Copy link
Member

g105b commented Feb 8, 2024

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.

@g105b g105b added this to Backlog in Overview via automation Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Overview
Backlog
Development

No branches or pull requests

1 participant