Skip to content

[VarExporter] Suppress deprecations for legacy fixtures #42782

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

Conversation

derrabus
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Part of #41552
License MIT
Doc PR N/A

Two test fixtures currently trigger a deprecation on PHP 8.1 because they implement Serializable without implementing __serialize() and __unserialize(). However, I believe that we want to test the behavior of the component with this kind of implementation. This why I decided to suppress the deprecation instead of upgrading the fixtures.

@carsonbot carsonbot added this to the 4.4 milestone Aug 29, 2021
@derrabus derrabus force-pushed the bugfix/suppress-deprecations-for-fixtures branch from 25f6233 to 01dcc62 Compare August 29, 2021 20:22
@stof
Copy link
Member

stof commented Aug 30, 2021

I suggest adding a comment in the code explaining what is done there (that's not self-explanatory right now), which will also allow figuring out that this can be removed once the min PHP requirement allows us to stop caring about that special case.

@derrabus
Copy link
Member Author

I suggest adding a comment in the code explaining what is done there

Will do.

which will also allow figuring out that this can be removed once the min PHP requirement allows us to stop caring about that special case.

That'll be PHP 9 then. 😱

Signed-off-by: Alexander M. Turek <me@derrabus.de>
@derrabus derrabus force-pushed the bugfix/suppress-deprecations-for-fixtures branch from 01dcc62 to 2db2c00 Compare August 30, 2021 16:02
@derrabus
Copy link
Member Author

I've added a longer comment to the custom error handling that should explain what I'm doing.

@derrabus derrabus merged commit 460fd35 into symfony:4.4 Aug 31, 2021
@derrabus derrabus deleted the bugfix/suppress-deprecations-for-fixtures branch August 31, 2021 12:52
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