2

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!

2
  • What is the code on ExternalServiceClient.php file at line 28? Commented Jan 26 at 21:43
  • @Mehrwarz $request = new ExternalRequest(), which is in the same Infrastructure/* namespace Commented Jan 27 at 8:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.