Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca6266d

Browse files
committed
bug #31465 [Serializer] Fix BC break: DEPTH_KEY_PATTERN must be public (dunglas)
This PR was merged into the 4.3 branch. Discussion ---------- [Serializer] Fix BC break: DEPTH_KEY_PATTERN must be public | Q | A | ------------- | --- | Branch? | 4.3 Bug fix? | yes | New feature? |no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | n/a | License | MIT | Doc PR | n/a Fix a BC break introduced by #30888. This constant is used by API Platform. Commits ------- 1bdf2af [Serializer] Fix BC break: DEPTH_KEY_PATTERN must be public
2 parents ae38ed8 + 1bdf2af commit ca6266d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
4141
/**
4242
* How to track the current depth in the context.
4343
*/
44-
private const DEPTH_KEY_PATTERN = 'depth_%s::%s';
44+
public const DEPTH_KEY_PATTERN = 'depth_%s::%s';
4545

4646
/**
4747
* While denormalizing, we can verify that types match.

0 commit comments

Comments
 (0)