mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-15 04:26:25 +00:00
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:
@@ -1875,9 +1875,9 @@ class Excel2007 extends BaseReader implements IReader
|
||||
|
||||
/**
|
||||
* @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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user