Resolve issue with boolean in branch pruning when array is expected

This commit is contained in:
MarkBaker 2022-04-13 20:18:21 +02:00
parent 19988626d4
commit abaa102919
1 changed files with 2 additions and 2 deletions

View File

@ -4413,7 +4413,7 @@ class Calculation
true : (bool) Functions::flattenSingleValue($storeValue);
if (is_array($storeValue)) {
$wrappedItem = end($storeValue);
$storeValue = end($wrappedItem);
$storeValue = is_array($wrappedItem) ? end($wrappedItem) : $wrappedItem;
}
if (
@ -4445,7 +4445,7 @@ class Calculation
true : (bool) Functions::flattenSingleValue($storeValue);
if (is_array($storeValue)) {
$wrappedItem = end($storeValue);
$storeValue = end($wrappedItem);
$storeValue = is_array($wrappedItem) ? end($wrappedItem) : $wrappedItem;
}
if (