From a986ab2d56c06d058f309f98da91515d5d94aeac Mon Sep 17 00:00:00 2001
From: Perreal Guillaume <guillaume.perreal@irstea.fr>
Date: Mon, 17 Jun 2019 13:53:33 +0200
Subject: [PATCH] =?UTF-8?q?Convertit=20les=20"array"=20PHP=20sans=20d?=
 =?UTF-8?q?=C3=A9tails=20en=20"Array<unknown>"=20en=20TS.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/php/SerializationMapper.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/php/SerializationMapper.php b/src/php/SerializationMapper.php
index cdbaace..c28e931 100644
--- a/src/php/SerializationMapper.php
+++ b/src/php/SerializationMapper.php
@@ -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();
-- 
GitLab