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

How to exclude PHP Core classes? #338

Open
ghost opened this issue Jan 14, 2023 · 2 comments
Open

How to exclude PHP Core classes? #338

ghost opened this issue Jan 14, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jan 14, 2023

Support Question

I want to protect my domain from classes outside namespace but not the PHP core classes, e.g. \DateTimeImmutable etc.
How to I do that globally? I can exclude them for example passing then to NotHaveDependencyOutsideNamespace as second argument, but that's to much overhead.

@AlessandroMinoccheri AlessandroMinoccheri added the enhancement New feature or request label Jan 15, 2023
@veylor-fp
Copy link

Same with vendor code,
for now we're using a whitelist which will become unmanageable over time

@mxr576
Copy link

mxr576 commented May 2, 2023

PHP Core classes would be also an interesting question to me, like \DateTimeImmutable or \RuntimeException. Should they be excluded by default?

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

No branches or pull requests

3 participants