Skip to content

Commit

Permalink
Readme: clarify behaviour of composer (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal authored Mar 25, 2024
1 parent 5ebb60a commit ab8c0f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Typically, you have PSR-4 autoloading which often solves this problem for you, b
And in such cases, the test may work when executed in standalone run, but fail when running all the tests together (depending on which class was autoloaded first).
Therefore, having a collision detector in CI might be useful.

## Composer's Ambiguous class resolution
You may have thought that Composer itself is somehow solving this, but that is not true. The only similar check that Composer performs (which results in `Warning: Ambiguous class resolution`) happens when classes collide **inside** the `vendor` path, not in your codebase. Composer does not report class ambiguity in your project at all.

## Supported PHP versions
- PHP 7.2 - PHP 8.3

0 comments on commit ab8c0f2

Please sign in to comment.