Enable Symfony 8 compatibility and modernize package constraints for PHP 8.4 integrations#20
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/bytes-commerce/synology-php-api/sessions/a3be92ae-349f-4a11-91cb-90b81e68edad Co-authored-by: bytes-max <6654389+bytes-max@users.noreply.github.com>
Agent-Logs-Url: https://github.com/bytes-commerce/synology-php-api/sessions/a3be92ae-349f-4a11-91cb-90b81e68edad Co-authored-by: bytes-max <6654389+bytes-max@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
bytes-max
May 21, 2026 11:32
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This package was constrained to Symfony 7-only dependency ranges and PHPUnit 9-era test configuration, which blocked adoption in Symfony 8 / PHP 8.4 projects. This update aligns dependency constraints and test bootstrap/config with current ecosystem expectations while keeping Symfony 7 compatibility.
Composer platform and framework compatibility
^7|^8for bundle integration in both major lines.>=8.2(therefore allowing PHP 8.4 consumers).symfony/http-client-contractsdoctrine/collectionswebmozart/assertTest stack modernization
phpunit/phpunitto^11.5.50.phpunit.xml.distto PHPUnit 11 schema semantics (removed legacy bridge-era/removed options, switched source config accordingly).Bootstrap and autoload alignment
autoload-devmapping for test namespace.tests/bootstrap.phpreferenced by PHPUnit config.Dependency graph refresh
composer.lockto reflect the new constraint set and dependency topology.Example of the key dependency shift:
{ "require": { "symfony/framework-bundle": "^7|^8", "symfony/http-kernel": "^7|^8", "symfony/http-client-contracts": "^3", "doctrine/collections": "^2.2|^3", "webmozart/assert": "^1.11|^2" }, "require-dev": { "phpunit/phpunit": "^11.5.50" } }