diff --git a/vendor/Luracast/Restler/CommentParser.php b/vendor/Luracast/Restler/CommentParser.php index e8248a385..8a3023cab 100644 --- a/vendor/Luracast/Restler/CommentParser.php +++ b/vendor/Luracast/Restler/CommentParser.php @@ -505,7 +505,7 @@ private function formatVar(array $value) $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'; }