I have the following issue with an "uncovered" dependency while running deptrac:
App\Infrastructure\Service\ExternalServiceClient has uncovered dependency on
App\Infrastructure\Service\ExternalService\Request\ExternalRequest
/app/src/ExternalService/Infrastructure/Service/ExternalServiceClient.php:28
It seems wrong because both files (ExternalServiceClient which references ExternalRequest) are in the same Infrastructure layer, as defined here:
- name: ExternalServiceInfrastructure
collectors:
- type: directory
value: src/ExternalService/Infrastructure/*
I even tried this:
ruleset:
ExternalServiceInfrastructure:
- ExternalServiceInfrastructure
Still doesn't work, and I can't seem to find a way around it (if it's a deptrac bug).
Does anyone has any idea how to fix this?
Thanks!
$request = new ExternalRequest(), which is in the sameInfrastructure/*namespace