'INF' => \INF,
'-INF' => -\INF,
default =>
throw NotNormalizableValueException::
createForUnexpectedDataType(sprintf('The type of the "%s" attribute for class "%s" must be float ("%s" given).',
$attribute,
$currentClass,
$data),
$data,
[Type::BUILTIN_TYPE_FLOAT
],
$context['deserialization_path'
] ?? null
),
};
} } if (null !==
$collectionValueType && Type::BUILTIN_TYPE_OBJECT ===
$collectionValueType->
getBuiltinType()) { $builtinType = Type::BUILTIN_TYPE_OBJECT;
$class =
$collectionValueType->
getClassName().'[]';
if (\
count($collectionKeyType =
$type->
getCollectionKeyTypes()) > 0
) { $context['key_type'
] = \
count($collectionKeyType) > 1 ?
$collectionKeyType :
$collectionKeyType[0
];
} $context['value_type'
] =
$collectionValueType;
} elseif ($type->
isCollection() && \
count($collectionValueType =
$type->
getCollectionValueTypes()) > 0 && Type::BUILTIN_TYPE_ARRAY ===
$collectionValueType[0
]->
getBuiltinType()) { // get inner type for any nested array
[$innerType] =
$collectionValueType;
// note that it will break for any other builtinType
$dimensions = '[]';
while (\
count($innerType->
getCollectionValueTypes()) > 0 && Type::BUILTIN_TYPE_ARRAY ===
$innerType->
getBuiltinType()) {