Skip to content

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Oct 2, 2025

Q A
Branch? 3.x
Bug fix? no (test only)
New feature? no
Deprecations? no (deprecated by Symfony itself)
Issues Related to symfony/symfony#60568
License MIT

Hide deprecation notices on Symfony 7.4 without asserting the deprecation message:

  13x: Since symfony/dependency-injection 7.4: XML configuration format is deprecated, use YAML or PHP instead.
    1x in XmlMonologExtensionTest::testLoadWithSeveralHandlers from Symfony\Bundle\MonologBundle\Tests\DependencyInjection
    1x in XmlMonologExtensionTest::testLoadWithOverwriting from Symfony\Bundle\MonologBundle\Tests\DependencyInjection
    1x in XmlMonologExtensionTest::testLoadWithNewAtEnd from Symfony\Bundle\MonologBundle\Tests\DependencyInjection
    1x in XmlMonologExtensionTest::testLoadWithNewAndPriority from Symfony\Bundle\MonologBundle\Tests\DependencyInjection
    1x in XmlMonologExtensionTest::testHandlersWithChannels from Symfony\Bundle\MonologBundle\Tests\DependencyInjection
    ...

Remaining indirect deprecation notices (3)

  3x: Since symfony/dependency-injection 7.4: XML configuration format is deprecated, use YAML or PHP instead.
    1x in XmlMonologExtensionTest::testLoadWithOverwriting from Symfony\Bundle\MonologBundle\Tests\DependencyInjection
    1x in XmlMonologExtensionTest::testLoadWithNewAtEnd from Symfony\Bundle\MonologBundle\Tests\DependencyInjection
    1x in XmlMonologExtensionTest::testLoadWithNewAndPriority from Symfony\Bundle\MonologBundle\Tests\DependencyInjection

@GromNaN GromNaN requested a review from HypeMC October 3, 2025 07:16
@GromNaN GromNaN force-pushed the legacy-xml-config branch from 79e9be6 to 78b5730 Compare October 3, 2025 07:54
@GromNaN GromNaN merged commit 804df4a into symfony:3.x Oct 3, 2025
8 checks passed
/**
* XML configuration deprecated since Symfony 7.4.
*
* @group legacy
Copy link
Member Author

Choose a reason for hiding this comment

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

I replaced the annotation with an attribute in upstream merge: d4f240d

@GromNaN GromNaN deleted the legacy-xml-config branch October 3, 2025 08:54
GromNaN added a commit that referenced this pull request Oct 3, 2025
This PR was merged into the 4.x branch.

Discussion
----------

Skip XML config tests with Symfony 8.0

| Q             | A
| ------------- | ---
| Branch?       | 4.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | Related to symfony/symfony#60568
| License       | MIT

Follow-up:
- #541

As soon as we keep support for Symfony 7.4, we must keep the tests on XML config format.

Commits
-------

3d3b625 Skip XML config tests with Symfony 8.0
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.

2 participants