Skip to content
Snippets Groups Projects
Commit 828fe984 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX #5734

parent 1bb278a5
No related branches found
No related tags found
No related merge requests found
......@@ -482,7 +482,7 @@ class CommentParser
$r['name'] = substr($data, 1);
}
}
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';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment