Resolve issue with boolean in branch pruning when array is expected
This commit is contained in:
parent
19988626d4
commit
abaa102919
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue