Skip to content

Commit

Permalink
Merge 34d230c into a1a85f1
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryPEGEOT committed Sep 27, 2021
2 parents a1a85f1 + 34d230c commit 741cbb8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -49,11 +49,11 @@ public function denormalize($propertyName, string $class = null, string $format
return $this->convertInnerFields($propertyName, false, $class, $format, $context);
}

private function convertInnerFields(string $propertyName, bool $normalization, string $class = null, string $format = null, $context = []): string
private function convertInnerFields($propertyName, bool $normalization, string $class = null, string $format = null, $context = []): string
{
$convertedProperties = [];

foreach (explode('.', $propertyName) as $decomposedProperty) {
foreach (explode('.', (string) $propertyName) as $decomposedProperty) {
$convertedProperties[] = $this->decorated->{$normalization ? 'normalize' : 'denormalize'}($decomposedProperty, $class, $format, $context);
}

Expand Down

0 comments on commit 741cbb8

Please sign in to comment.