Skip to content
Closed
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
4 changes: 2 additions & 2 deletions 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