Skip to content

Conversation

@GromNaN
Copy link
Owner

@GromNaN GromNaN commented Dec 2, 2025

Fix tests error related to symfony/symfony#62558

This parameter is added only by the XML loader, so the comparison is wrong.

Copilot AI review requested due to automatic review settings December 2, 2025 10:49
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 addresses test failures caused by a recent Symfony change (symfony/symfony#62558) by removing the .container.known_envs parameter from container instances before comparison. The fix ensures that XML and PHP container dumps can be accurately compared without interference from this internal Symfony parameter.

Key changes:

  • Added removal of .container.known_envs parameter after loading both XML and PHP containers
  • Applied the fix consistently across test and production validation code

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/SymfonyXmlFixturesTest.php Removes .container.known_envs parameter after loading XML and PHP containers in test validation
src/ConvertCommand.php Removes .container.known_envs parameter after loading XML and PHP containers in command validation logic

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

@GromNaN GromNaN merged commit 7125894 into main Dec 2, 2025
1 check passed
@GromNaN GromNaN deleted the skip-know-envs branch December 2, 2025 10:51
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.

1 participant