Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 424b9ff

Browse files
Added missing __call to TraceableEncoder
1 parent 74f3c37 commit 424b9ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/Serializer/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)