Skip to content

Conversation

@alexander-schranz
Copy link
Contributor

To make it easier to tackle this task also already for libraries not yet targetting Symfony 8.0 but want get rid of the XMLs.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to broaden PHP version support from PHP 8.4+ down to PHP 8.2+ to make the library accessible to projects not yet targeting Symfony 8.0. However, there are critical dependency compatibility issues that prevent this from working.

Key Changes:

  • PHP version requirement lowered from >= 8.4 to >= 8.2
  • Symfony components downgraded from 8.1.x-dev to 7.3.x-dev/7.4.x-dev branches
  • PHPUnit version range expanded to support both 12.5 and 13.0

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
composer.json Updates PHP requirement to >= 8.2 and adjusts PHPUnit version constraint to support 12.5 or 13.0
composer.lock Reflects dependency resolution with downgraded Symfony components and PHPUnit 12.5, but contains incompatible dependencies requiring PHP 8.3+
tests/SymfonyXmlFixturesTest.php Applies stylistic code formatting change (wrapping instantiation in parentheses) with no functional impact
.github/workflows/tests.yml Updates CI workflow to test against PHP 8.2 instead of 8.4
.gitignore Adds /output/ directory to ignored files

Critical Issues: The composer.lock file contains resolved dependencies that require PHP >= 8.3, including the production dependency sebastian/diff and the dev dependency phpunit/phpunit. This makes the package uninstallable on PHP 8.2, contradicting the PR's stated goal. The dependency versions need to be adjusted to versions that support PHP 8.2 before this change can work as intended.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GromNaN
Copy link
Owner

GromNaN commented Dec 5, 2025

This 2 lines need to be wrapped with parenthesis:

$xmlDump = new XmlDumper($xmlContainer)->dump();
$phpDump = new XmlDumper($phpContainer)->dump();

"symfony/expression-language": "7.4.*",
"sebastian/diff": "^7.0"
"sebastian/diff": "^6.0 || ^7.0"
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the platform.php config here to ensure that composer.lock is generated on updates to PHP 8.2, not the maintainer's local version?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove the composer.lock

@GromNaN GromNaN merged commit 6ae2040 into GromNaN:main Dec 7, 2025
1 check passed
@GromNaN
Copy link
Owner

GromNaN commented Dec 7, 2025

Thank you @alexander-schranz

@alexander-schranz alexander-schranz deleted the feature/support-older-php-version branch December 7, 2025 22:09
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

Successfully merging this pull request may close these issues.

3 participants