Skip to content

Commit f457050

Browse files
committed
fix possible fatal error for composition type transfer
1 parent 05be1d0 commit f457050

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/PropertyProcessor/ComposedValue/AbstractComposedValueProcessor.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,15 @@ protected function getCompositionProperties(PropertyInterface $property, JsonSch
164164
*/
165165
private function transferPropertyType(PropertyInterface $property, array $compositionProperties)
166166
{
167-
$compositionPropertyTypes = array_unique(
168-
array_filter(
169-
array_map(
170-
function (CompositionPropertyDecorator $property): string {
171-
return $property->getType() ? $property->getType()->getName() : '';
172-
},
173-
$compositionProperties
167+
$compositionPropertyTypes = array_values(
168+
array_unique(
169+
array_filter(
170+
array_map(
171+
function (CompositionPropertyDecorator $property): string {
172+
return $property->getType() ? $property->getType()->getName() : '';
173+
},
174+
$compositionProperties
175+
)
174176
)
175177
)
176178
);

0 commit comments

Comments
 (0)