phpstan appeasement

This commit is contained in:
MarkBaker 2021-05-08 21:04:13 +02:00 committed by Mark Baker
parent 5d6b072fb0
commit 13ec163333
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class Styles
}
$styleAttributes = $style->attributes();
if (($styleAttributes['startRow'] <= $maxRow) && ($styleAttributes['startCol'] <= $maxCol)) {
if ($styleAttributes !== null && ($styleAttributes['startRow'] <= $maxRow) && ($styleAttributes['startCol'] <= $maxCol)) {
$cellRange = $this->readStyleRange($styleAttributes, $maxCol, $maxRow);
$styleAttributes = $style->Style->attributes();
@ -258,7 +258,7 @@ class Styles
}
}
private function readStyleRange(?SimpleXMLElement $styleAttributes, int $maxCol, int $maxRow): string
private function readStyleRange(SimpleXMLElement $styleAttributes, int $maxCol, int $maxRow): string
{
$startColumn = Coordinate::stringFromColumnIndex((int) $styleAttributes['startCol'] + 1);
$startRow = $styleAttributes['startRow'] + 1;