Skip to content

[Form] Deprecate VersionAwareTest trait #57839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jul 26, 2024

Q A
Branch? 7.2
Bug fix? no
New feature? yes
Deprecations? yes
Issues N/A
License MIT

With this trait, downstream projects can check if they have at least Symfony Form 4.4 installed. That check should really be a no-op these days.

I haven't removed the usages of this trait since downstream code might still rely on its presence. But I could eliminate all calls to the method that the trait provides.

@derrabus
Copy link
Member Author

Question: is Symfony\Bridge\Twig\Tests\Extension\AbstractLayoutTestCase a class that is supposed to be used downstream when testing custom form layouts? Or is this a test case class internal to the Twig bridge? If the latter is the case, I'd like to remove the use VersionAwareTest; from there at least.

@xabbuh
Copy link
Member

xabbuh commented Jul 26, 2024

It's not intended to be used by other projects.

@derrabus derrabus force-pushed the deprecate/version-aware-test branch from 3884191 to bc3ee44 Compare July 26, 2024 11:37
@derrabus
Copy link
Member Author

It's not intended to be used by other projects.

Perfect. I've removed the trait usage from there then. This will make it a lot easier to remove the trait in 8.0.

@xabbuh
Copy link
Member

xabbuh commented Jul 28, 2024

Thank you @derrabus.

@xabbuh xabbuh merged commit 05e61ff into symfony:7.2 Jul 28, 2024
9 of 10 checks passed
@derrabus derrabus deleted the deprecate/version-aware-test branch July 28, 2024 13:18
nicolas-grekas added a commit that referenced this pull request Sep 28, 2024
…outTestCase` (alexandre-daubois)

This PR was merged into the 6.4 branch.

Discussion
----------

[TwigBridge] Remove `VersionAwareTest` from `AbstractLayoutTestCase`

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

I propose to backport what was done in #57839 (cc `@derrabus`) because the test suite currently fails on 6.4 high deps: https://github.com/symfony/symfony/actions/runs/11082470673/job/30795519671#step:8:9163

Commits
-------

4219d16 [TwigBridge] Remove `VersionAwareTest` from `AbstractLayoutTestCase`
@fabpot fabpot mentioned this pull request Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants