allow numeric 0
This commit is contained in:
parent
8f51d4ac31
commit
b7831cc933
@ -135,9 +135,6 @@ EOD;
|
|||||||
$data .= ' <c r="' . $columnIndex . $rowIndex . '"';
|
$data .= ' <c r="' . $columnIndex . $rowIndex . '"';
|
||||||
|
|
||||||
switch(true) {
|
switch(true) {
|
||||||
case empty($cellValue):
|
|
||||||
$data .= '/>' . PHP_EOL;
|
|
||||||
break;
|
|
||||||
case gettype($cellValue) === 'integer':
|
case gettype($cellValue) === 'integer':
|
||||||
case gettype($cellValue) === 'boolean':
|
case gettype($cellValue) === 'boolean':
|
||||||
case gettype($cellValue) === 'float':
|
case gettype($cellValue) === 'float':
|
||||||
@ -154,6 +151,9 @@ EOD;
|
|||||||
$data .= ' t="s"><v>' . $sharedStringId . '</v></c>' . PHP_EOL;
|
$data .= ' t="s"><v>' . $sharedStringId . '</v></c>' . PHP_EOL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case empty($cellValue):
|
||||||
|
$data .= '/>' . PHP_EOL;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new InvalidDataException("Invalid data type " . gettype($cellValue));
|
throw new InvalidDataException("Invalid data type " . gettype($cellValue));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user