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

Question - sniff to detect missing imports/use #1714

Open
tiagoraposeiraff opened this issue Nov 22, 2024 · 2 comments
Open

Question - sniff to detect missing imports/use #1714

tiagoraposeiraff opened this issue Nov 22, 2024 · 2 comments

Comments

@tiagoraposeiraff
Copy link

I tried to find a sniff on the list that would match this need, but couldn't find one. Does it exist?

Basically something to fix "Undefined type xyz" errors.

Thanks in advance!

@kukulich
Copy link
Contributor

I don't think this is something that should (and could) be solved by PHPCS. You should use PHPStan instead.

@tiagoraposeiraff
Copy link
Author

There's this package but there's some issues with global imports and latest versions of phpcs https://github.com/sirbrillig/phpcs-import-detection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants