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); + } }