Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Serializer] Change visibility of Serializer::getNormalizer and ::getDenormalizer from private to protected #52084

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

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Forget public, make these protected
  • Loading branch information
bradjones1 committed Oct 16, 2023
commit 46b043d873abb6ea16f901476a26d61caadcd881
4 changes: 2 additions & 2 deletions 4 src/Symfony/Component/Serializer/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function supportsDenormalization(mixed $data, string $type, string $forma
* @param string|null $format Format name, present to give the option to normalizers to act differently based on formats
* @param array $context Options available to the normalizer
*/
private function getNormalizer(mixed $data, ?string $format, array $context): ?NormalizerInterface
protected function getNormalizer(mixed $data, ?string $format, array $context): ?NormalizerInterface
{
if (\is_object($data)) {
$type = $data::class;
Expand Down Expand Up @@ -333,7 +333,7 @@ private function getNormalizer(mixed $data, ?string $format, array $context): ?N
* @param string|null $format Format name, present to give the option to normalizers to act differently based on formats
* @param array $context Options available to the denormalizer
*/
private function getDenormalizer(mixed $data, string $class, ?string $format, array $context): ?DenormalizerInterface
protected function getDenormalizer(mixed $data, string $class, ?string $format, array $context): ?DenormalizerInterface
{
if (!isset($this->denormalizerCache[$format][$class])) {
$this->denormalizerCache[$format][$class] = [];
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.