Jan Nedbal
Jan Nedbal
The same problem occurs (`arrayAlias` reported) when using PHPStan type like this: ```php /** * @phpstan-type arrayAlias array */ class SomeClass { /** * @return arrayAlias */ private function someMethod():...
`@psalm-import-type` has the same problem
The prefix is not really scoping, tools like PHPStan often introduce some features with prefixed annotation (like `@phpstan-return`), but later other tools (like PHPStorm) includes such feature in regular annotation...
Currently, I'm using this to avoid this issue in general (as we use only class tokens): ```php class ExcludeUncoveredHandler implements EventSubscriberInterface { public function handleUncovered(PostProcessEvent $event): void { $result =...
We have other tooling to detect non-existing classes in codebase, so this should be safe in our case. If deptrac finds non-class token, it clearly does something wrong and I...
I've decided to close this issue as stale. If you ever come back with the implementation PR, you are welcome! Thanks for understanding.
It is theoretically possible to implement, but you can use `$config->addPathToExclude(__DIR__ . '/Feature/tests')` even now to achieve the same thing.
You can easily do some glob within the php config file, we are doing the same thing: ```php $config->addPathsToExclude(\Webmozart\Glob\Glob::glob(__DIR__ . '/bin/*.php')); ```
This looks like you are trying to use this tool only to report unknown classes, but reporting unknown classes is more a side-feature of this tool. This check is present...
I dont really understand why would you ignore error that is not present at all, but if you really need that, you can disable the "unused ignore" feature in the...