Add ext-psr to conflict section in composer.json#127
Conversation
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
ext-psr to conflict section in composer.json
|
Don't forget add line to changelog |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #127 +/- ##
============================================
- Coverage 99.56% 99.55% -0.02%
Complexity 161 161
============================================
Files 11 11
Lines 464 448 -16
============================================
- Hits 462 446 -16
Misses 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot add line to CHANGELOG describing the change. |
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds the ext-psr PECL extension to the conflict section in composer.json to prevent compatibility issues. The PECL psr extension is built against psr/log 1.0.0, while this library requires psr/log ^2.0 || ^3.0, causing interface conflicts when both are present.
Key Changes
- Added
ext-psr: "*"to theconflictsection incomposer.json - Updated CHANGELOG.md with an entry documenting this change under version 2.1.2
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| composer.json | Adds new conflict section declaring incompatibility with ext-psr extension |
| CHANGELOG.md | Documents the conflict addition with proper issue reference and attribution |
The implementation looks correct. The conflict section is properly formatted and positioned in the composer.json file, and the changelog entry follows the project's established format. No issues were identified in the changes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The PECL
psrextension (https://pecl.php.net/package/psr) provides PSR interfaces for PHP but is built againstpsr/log1.0.0. This library requirespsr/log^2.0 || ^3.0, causing interface conflicts when both are present.Added
ext-psrto theconflictsection so Composer warns users of the incompatibility:Also added changelog entry under version 2.1.2.
Original prompt
ext-psrto "conflict" section in composer.json #126💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.