Merge pull request #2748 from PHPOffice/Resolve-Issue-with-Boolean-in-Branch-Pruning

Resolve issue with boolean in branch pruning when array is expected
This commit is contained in:
Mark Baker 2022-04-13 20:27:19 +02:00 committed by GitHub
commit 709e2ae5ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 (