Skip to content

Commit d7f0d76

Browse files
danielburger1337derrabus
authored andcommitted
[Serializer] Added missing __call to TraceableNormalizer and TraceableSerializer
1 parent 70aebc6 commit d7f0d76

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Debug/TraceableNormalizer.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,12 @@ public function hasCacheableSupportsMethod(): bool
150150
{
151151
return $this->normalizer instanceof CacheableSupportsMethodInterface && $this->normalizer->hasCacheableSupportsMethod();
152152
}
153+
154+
/**
155+
* Proxies all method calls to the original normalizer.
156+
*/
157+
public function __call(string $method, array $arguments): mixed
158+
{
159+
return $this->normalizer->{$method}(...$arguments);
160+
}
153161
}

Debug/TraceableSerializer.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,12 @@ public function supportsDecoding(string $format, array $context = []): bool
165165
{
166166
return $this->serializer->supportsDecoding($format, $context);
167167
}
168+
169+
/**
170+
* Proxies all method calls to the original serializer.
171+
*/
172+
public function __call(string $method, array $arguments): mixed
173+
{
174+
return $this->serializer->{$method}(...$arguments);
175+
}
168176
}

0 commit comments

Comments
 (0)