parent
cd9f1db229
commit
1082997f62
@ -505,7 +505,7 @@ class CommentParser
|
|||||||
$data = explode('|', $data);
|
$data = explode('|', $data);
|
||||||
$r['type'] = count($data) == 1 ? $data[0] : $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[static::$embeddedDataName]['type'] = substr($r['type'], 0, -2);
|
||||||
$r['type'] = 'array';
|
$r['type'] = 'array';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user