Commit 29d89ad
Add conflict for nikic/php-parser to fix autoloader collision
rector/rector bundles its own vendored copy of nikic/php-parser.
When phpunit/php-code-coverage (a transitive dependency) pulls in
nikic/php-parser directly, the classes get loaded twice causing:
Cannot declare class PhpParser\Node\Scalar\InterpolatedString,
because the name is already in use
Adding this conflict prevents composer from installing nikic/php-parser
directly, avoiding the autoloader collision with rector's bundled version.
Fixes CI failure: https://github.com/cakephp/upgrade/actions/runs/19643729518
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 63199da commit 29d89ad
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments