Skip to content

Conversation

@mtarld
Copy link
Contributor

@mtarld mtarld commented Sep 29, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? yes
Deprecations? no
Issues
License MIT

This PR merges PropertyMetadata::$streamToNativeValueTransformers and PropertyMetadata::$nativeToStreamValueTransformers to PropertyMetadata::$valueTransformers.

Indeed, as property metadata is computed in one way at the time (reading or writing), there is no benefit keeping a distinction between native to stream and stream to native.

@stof
Copy link
Member

stof commented Sep 29, 2025

Could this be implemented with a BC layer ?

The fact that the component is experimental in 7.3 allows us to do BC breaks in minor versions if needed, but I think this is a case where the BC layer is easy enough to implement. An immediate BC break is more costly for the ecosystem than a deprecation, so we should still prefer doing a deprecation.

@mtarld mtarld force-pushed the feat/json-streamer-property-metadata branch 3 times, most recently from 24d593c to 219aa6d Compare October 3, 2025 08:26
@mtarld mtarld force-pushed the feat/json-streamer-property-metadata branch 3 times, most recently from a34554b to 8e87a1e Compare October 18, 2025 09:37
@mtarld mtarld force-pushed the feat/json-streamer-property-metadata branch from 8e87a1e to 288dc00 Compare October 20, 2025 14:41
@nicolas-grekas nicolas-grekas force-pushed the feat/json-streamer-property-metadata branch from 288dc00 to 0f423f8 Compare October 24, 2025 13:47
@nicolas-grekas
Copy link
Member

Thank you @mtarld.

@nicolas-grekas nicolas-grekas merged commit f8a8c85 into symfony:7.4 Oct 24, 2025
6 of 12 checks passed
@mtarld mtarld deleted the feat/json-streamer-property-metadata branch October 24, 2025 15:29
mtarld added a commit to mtarld/symfony that referenced this pull request Oct 25, 2025
mtarld added a commit to mtarld/symfony that referenced this pull request Oct 25, 2025
alexandre-daubois added a commit that referenced this pull request Oct 25, 2025
This PR was merged into the 7.4 branch. Discussion ---------- [JsonStreamer] Fix #61880 upmerge | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | F | License | MIT Fix #61880 that triggers deprecation in 7.4 Commits ------- a3bd9be [JsonStreamer] Fix #61880 upmerge
GromNaN added a commit that referenced this pull request Oct 25, 2025
By Mathias Arlaud (2) and Yonel Ceruto (1) Via Alexandre Daubois (2) and others * 7.4: [JsonStreamer] Add deprecation related tests [JsonStreamer] Fix #61880 upmerge Fix argument syntax for callable and lazy initialization of inline service
This was referenced Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment