Loosen type checking to allow both use-cases
Previously it crashed when loading an file containing conditional formatting FIX #21
This commit is contained in:
parent
d32b4c423c
commit
2b41bdbf4e
|
@ -1875,9 +1875,9 @@ class Excel2007 extends BaseReader implements IReader
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \PhpOffice\PhpSpreadsheet\Style $docStyle
|
* @param \PhpOffice\PhpSpreadsheet\Style $docStyle
|
||||||
* @param \stdClass $style
|
* @param \stdClass|\SimpleXMLElement $style
|
||||||
*/
|
*/
|
||||||
private static function readStyle($docStyle, \stdClass $style)
|
private static function readStyle(\PhpOffice\PhpSpreadsheet\Style $docStyle, $style)
|
||||||
{
|
{
|
||||||
$docStyle->getNumberFormat()->setFormatCode($style->numFmt);
|
$docStyle->getNumberFormat()->setFormatCode($style->numFmt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue