← All changes
|
libraries/vendor/PhpSpreadsheet/Reader/Xlsx/ConditionalStyles.php
+2
-2
3.3.3
→
3.4
View file →
| @@ -301,9 +301,9 @@ | ||
| 301 | 301 | //dataBar children |
| 302 | 302 | //conditionalFormatValueObjects |
| 303 | 303 | $cfvoXml = $cfRule->dataBar->cfvo; |
| 304 | 304 | $cfvoIndex = 0; |
| 305 | - foreach ((count($cfvoXml) > 1 ? $cfvoXml : [$cfvoXml]) as $cfvo) { //* @phpstan-ignore-line | |
| 305 | + foreach ((count($cfvoXml) > 1 ? $cfvoXml : [$cfvoXml]) as $cfvo) { //* @phpstan-ignore foreach.nonIterable (I don't know how to fix this) | |
| 306 | 306 | /** @var SimpleXMLElement $cfvo */ |
| 307 | 307 | if ($cfvoIndex === 0) { |
| 308 | 308 | $dataBar->setMinimumConditionalFormatValueObject(new ConditionalFormatValueObject((string) $cfvo['type'], (string) $cfvo['val'])); |
| 309 | 309 | } |
| @@ -407,9 +407,9 @@ | ||
| 407 | 407 | private function readDataBarExtLstOfConditionalRule(ConditionalDataBar $dataBar, SimpleXMLElement $cfRule, array $conditionalFormattingRuleExtensions): void |
| 408 | 408 | { |
| 409 | 409 | if (isset($cfRule->extLst)) { |
| 410 | 410 | $ns = $cfRule->extLst->getNamespaces(true); |
| 411 | - foreach ((count($cfRule->extLst) > 0 ? $cfRule->extLst->ext : [$cfRule->extLst->ext]) as $ext) { //* @phpstan-ignore-line | |
| 411 | + foreach ((count($cfRule->extLst) > 0 ? $cfRule->extLst->ext : [$cfRule->extLst->ext]) as $ext) { //* @phpstan-ignore foreach.nonIterable (I don't know how to fix this) | |
| 412 | 412 | /** @var SimpleXMLElement $ext */ |
| 413 | 413 | $extId = (string) $ext->children($ns['x14'])->id; |
| 414 | 414 | if (isset($conditionalFormattingRuleExtensions[$extId]) && (string) $ext['uri'] === '{B025F937-C7B1-47D3-B67F-A62EFF666E3E}') { |
| 415 | 415 | $dataBar->setConditionalFormattingRuleExt($conditionalFormattingRuleExtensions[$extId]); |