Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with duplicate functions and classes #1414

Open
plumthedev opened this issue May 2, 2024 · 1 comment
Open

Problem with duplicate functions and classes #1414

plumthedev opened this issue May 2, 2024 · 1 comment

Comments

@plumthedev
Copy link

plumthedev commented May 2, 2024

While working on my PHP config for Deptrac, as recommended here, I noticed that there is a directory vendor in Deptrac library that contains duplicate functions or classes, which leads to name conflicts in my project. For example, I see two versions of the array_map() function: one from my project's namespace (DEPTRAC_202403\array_map()) and one dependent on the repository (array_map()). This is quite problematic as it makes coding difficult.

Is there a planned solution to this problem in future versions of the repository? If so, could you please specify when to expect these changes? If not, how I can solve that problem, I don't want to public config which duplicates functions and classes but in different namespace.

For now, the only workaround which I see is to install config only during CI/CD and then scan for violations of dependencies, but this will limit developers to see the scan results only during CI/CD which is not so good too.

@gennadigennadigennadi
Copy link
Member

gennadigennadigennadi commented May 29, 2024

Where is the function definition inside of Deptrac located?

It might be related to the update php-scoped definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants