From 20f4cc673fb57d39b8a2337e341b8bce742cbdce Mon Sep 17 00:00:00 2001 From: Antoine Bluchet Date: Mon, 22 Jun 2015 15:47:46 +0200 Subject: [PATCH] Prevent error "Undefined index" when no subtype provided --- Extractor/ApiDocExtractor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extractor/ApiDocExtractor.php b/Extractor/ApiDocExtractor.php index d6c75b4..b2e9f01 100644 --- a/Extractor/ApiDocExtractor.php +++ b/Extractor/ApiDocExtractor.php @@ -534,7 +534,7 @@ class ApiDocExtractor { foreach ($array as $name => $info) { - if (empty($info['dataType'])) { + if (empty($info['dataType']) && isset($info['subType'])) { $array[$name]['dataType'] = $this->generateHumanReadableType($info['actualType'], $info['subType']); }