Skip to content

Commit

Permalink
fix(elasticsearch): type error with $propertyName
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryPEGEOT committed Aug 23, 2021
1 parent 4f363fc commit b9bbc66
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 b9bbc66

Please sign in to comment.