This commit is contained in:
zhaoke
2023-04-27 09:29:23 +08:00
parent efb4d64ca2
commit 9a49be8ae4
+1 -1
View File
@@ -4567,7 +4567,7 @@ class testcaseModel extends model
{
// Only entry with this key
// Test if tags of this type should always be arrays, no matter the element count
$tagsArray[$childTagName] = in_array($childTagName, $options['alwaysArray'], true) || !$options['autoArray'] ? [$childProperties] : $childProperties;
$tagsArray[$childTagName] = in_array($childTagName, $options['alwaysArray'], true) || !$options['autoArray'] ? array($childProperties) : $childProperties;
}
elseif(is_array($tagsArray[$childTagName]) && array_keys($tagsArray[$childTagName]) === range(0, count($tagsArray[$childTagName]) - 1))
{