|
@@ -505,7 +505,7 @@ class CommentParser
|
|
|
$data = explode('|', $data);
|
|
|
$r['type'] = count($data) == 1 ? $data[0] : $data;
|
|
|
}
|
|
|
- if (isset($r['type']) && Text::endsWith($r['type'], '[]')) {
|
|
|
+ if (isset($r['type']) && is_string($r['type']) && Text::endsWith($r['type'], '[]')) {
|
|
|
$r[static::$embeddedDataName]['type'] = substr($r['type'], 0, -2);
|
|
|
$r['type'] = 'array';
|
|
|
}
|