Skip to content

Commit

Permalink
Merge 88715a6 into 8dc497c
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryPEGEOT committed Sep 27, 2021
2 parents 8dc497c + 88715a6 commit b169c51
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 b169c51

Please sign in to comment.