mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-06 07:29:05 +00:00
fix access error
Fix the error "Trying to access array offset on value of type null"
This commit is contained in:
committed by
Adrien Crivelli
parent
7f5e0f0a37
commit
e5409f0fed
@@ -163,7 +163,7 @@ class Styles extends BaseParserClass
|
||||
self::readBorderStyle($docStyle->getBorders(), $style->border);
|
||||
}
|
||||
|
||||
if (isset($style->alignment)) {
|
||||
if (isset($style->alignment->alignment)) {
|
||||
self::readAlignmentStyle($docStyle->getAlignment(), $style->alignment);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user