Skip to content

Commit 56da381

Browse files
Added missing __call to TraceableEncoder
1 parent d7f0d76 commit 56da381

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Debug/TraceableEncoder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,12 @@ public function needsNormalization(): bool
121121
{
122122
return !$this->encoder instanceof NormalizationAwareEncoder;
123123
}
124+
125+
/**
126+
* Proxies all method calls to the original encoder.
127+
*/
128+
public function __call(string $method, array $arguments): mixed
129+
{
130+
return $this->encoder->{$method}(...$arguments);
131+
}
124132
}

0 commit comments

Comments
 (0)