mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-24 12:38:33 +00:00
5b18dcf04d
PR #4073 adds parsing of formulas for `$cell->setValue()`, but the spill operator won't parse correctly, breaking some of this PR. Add code to avoid that problem.
40 lines
703 B
PHP
40 lines
703 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use PhpOffice\PhpSpreadsheet\Cell\DataType;
|
|
|
|
return [
|
|
/*[
|
|
'ABCDEFGHIJ',
|
|
'ABCDE',
|
|
'FGHIJ',
|
|
],
|
|
[
|
|
'123',
|
|
1,
|
|
2,
|
|
3,
|
|
],
|
|
[
|
|
'Boolean-TRUE',
|
|
'Boolean',
|
|
'-',
|
|
true,
|
|
],
|
|
'no arguments' => ['exception'],
|
|
'result just fits' => [
|
|
// Note use Armenian character below to make sure chars, not bytes
|
|
str_repeat('Ԁ', DataType::MAX_STRING_LENGTH - 5) . 'ABCDE',
|
|
'A3',
|
|
'ABCDE',
|
|
],
|
|
'result too long' => [
|
|
'#CALC!',
|
|
'A3',
|
|
'abc',
|
|
'def',
|
|
],*/
|
|
'propagate DIV0' => ['#DIV/0!', '1', 'A2', '3'],
|
|
];
|