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
-------

1bdf2af0da [Serializer] Fix BC break: DEPTH_KEY_PATTERN must be public
This commit is contained in:
Fabien Potencier 2019-05-10 16:37:16 +02:00
commit ca6266d902

View File

@ -41,7 +41,7 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
/**
* How to track the current depth in the context.
*/
private const DEPTH_KEY_PATTERN = 'depth_%s::%s';
public const DEPTH_KEY_PATTERN = 'depth_%s::%s';
/**
* While denormalizing, we can verify that types match.