phparch
phparch copied to clipboard
I have the following in my composer.json ``` "require": { "ext-ds": "*", } ``` but I still get an error if I'm using `Ds\\*` classes: `App must only depend on...
Hi, This is a feature request to be able to support dependency checks via wildcards. Something like this: ```php $phpArch->validate(new ForbiddenDependency('App\\Bus\\*\\Command', 'App\\Bus\\*\\Command')); $phpArch->validate(new ForbiddenDependency('App\\Bus\\*\\Query', 'App\\Bus\\*\\Command')); ``` ##Background: I have a...
Added docker files to the home directory and added notes at the bottom of the main readme to make it easy for new developers to run/test phparch in a Linux...
At the moment, using callable type declarations in `@param` annotations will run into Runtime exceptions from `phpdocumentor/type-parser`: ``` /** * @template TReturn * @param (callable(): TReturn) $generator * @return TReturn...
While reviewing #14 we realized that union types (such as `Foo|Bar`) are not supported yet. * Union types in docblock typehints should be parsed as each of the component *...
Currently, phparch (or - more accurately, the [`DocBlockTypeAnnotations` Visitor](https://github.com/j6s/phparch/blob/development/src/Parser/Visitor/DocBlockTypeAnnotations.php)) uses phpdocumentor in order to parse PHPDoc comments and it's TypeResolver in order to resolve the symbols in these comments to...
Currently if a class is injected from a dependency injection framework it is not tracked as a dependency. There should be a Visitor/Extractor that detects dependency framework calls. Examples (laravel):...