Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions UPGRADE-7.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ Security
* Deprecate `AbstractListener::__invoke`
* Deprecate `LazyFirewallContext::__invoke()`

Serializer
----------

* Make `AttributeMetadata` and `ClassMetadata` final

Translation
-----------

Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Serializer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CHANGELOG

* Add `CDATA_WRAPPING_NAME_PATTERN` support to `XmlEncoder`
* Add support for `can*()` methods to `AttributeLoader`
* Make `AttributeMetadata` and `ClassMetadata` final

7.3
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

/**
* @author Kévin Dunglas <dunglas@gmail.com>
*
* @final since Symfony 7.4
*/
class AttributeMetadata implements AttributeMetadataInterface
{
Expand Down Expand Up @@ -215,9 +217,9 @@ public function merge(AttributeMetadataInterface $attributeMetadata): void
}

/**
* Returns the names of the properties that should be serialized.
* @internal since Symfony 7.4, will be replaced by `__serialize()` in 8.0
*
* @return string[]
* @final since Symfony 7.4
*/
public function __sleep(): array
{
Expand Down
6 changes: 4 additions & 2 deletions src/Symfony/Component/Serializer/Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

/**
* @author Kévin Dunglas <dunglas@gmail.com>
*
* @final since Symfony 7.4
*/
class ClassMetadata implements ClassMetadataInterface
{
Expand Down Expand Up @@ -92,9 +94,9 @@ public function setClassDiscriminatorMapping(?ClassDiscriminatorMapping $mapping
}

/**
* Returns the names of the properties that should be serialized.
* @internal since Symfony 7.4, will be replaced by `__serialize()` in 8.0
*
* @return string[]
* @final since Symfony 7.4
*/
public function __sleep(): array
{
Expand Down
Loading