arkitect icon indicating copy to clipboard operation
arkitect copied to clipboard

How to exclude PHP Core classes?

Open javaDeveloperKid opened this issue 2 years ago • 2 comments

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.

javaDeveloperKid avatar Jan 14 '23 11:01 javaDeveloperKid

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

veylor-fp avatar Feb 14 '23 14:02 veylor-fp

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

mxr576 avatar May 02 '23 11:05 mxr576