Commit a986ab2d authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Convertit les "array" PHP sans détails en "Array<unknown>" en TS.

Showing with 4 additions and 0 deletions
+4 -0
......@@ -334,6 +334,10 @@ final class SerializationMapper implements TypeFactoryInterface
}
$indexType = $type->getCollectionKeyType();
if ($indexType === null && $type->getCollectionValueType() === null && $type->getBuiltinType() === 'array') {
return new ArrayType(BuiltinType::get('unknown'));
}
Assertion::notNull($indexType, 'Cannot handle collection with undefined index type');
$builtinType = $indexType->getBuiltinType();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment