From 74f3c37182cef294ed57e32c04155cd3463d7036 Mon Sep 17 00:00:00 2001 From: Daniel Burger <48986191+danielburger1337@users.noreply.github.com> Date: Mon, 30 May 2022 18:45:24 +0200 Subject: [PATCH] [Serializer] Added missing __call to TraceableNormalizer and TraceableSerializer --- .../Component/Serializer/Debug/TraceableNormalizer.php | 8 ++++++++ .../Component/Serializer/Debug/TraceableSerializer.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/Symfony/Component/Serializer/Debug/TraceableNormalizer.php b/src/Symfony/Component/Serializer/Debug/TraceableNormalizer.php index 58a055ecfa90d..33e1b255a38c3 100644 --- a/src/Symfony/Component/Serializer/Debug/TraceableNormalizer.php +++ b/src/Symfony/Component/Serializer/Debug/TraceableNormalizer.php @@ -150,4 +150,12 @@ public function hasCacheableSupportsMethod(): bool { return $this->normalizer instanceof CacheableSupportsMethodInterface && $this->normalizer->hasCacheableSupportsMethod(); } + + /** + * Proxies all method calls to the original normalizer. + */ + public function __call(string $method, array $arguments): mixed + { + return $this->normalizer->{$method}(...$arguments); + } } diff --git a/src/Symfony/Component/Serializer/Debug/TraceableSerializer.php b/src/Symfony/Component/Serializer/Debug/TraceableSerializer.php index 557bf91286c28..bc16bd7f8d240 100644 --- a/src/Symfony/Component/Serializer/Debug/TraceableSerializer.php +++ b/src/Symfony/Component/Serializer/Debug/TraceableSerializer.php @@ -165,4 +165,12 @@ public function supportsDecoding(string $format, array $context = []): bool { return $this->serializer->supportsDecoding($format, $context); } + + /** + * Proxies all method calls to the original serializer. + */ + public function __call(string $method, array $arguments): mixed + { + return $this->serializer->{$method}(...$arguments); + } }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: