PhpExcel icon indicating copy to clipboard operation
PhpExcel copied to clipboard

Fatal error: 'break' not in the 'loop' or 'switch' context in \PHPExcel\PHPExcel\Calculation\Functions.php on line 581

Open swapnilb0506 opened this issue 6 years ago • 2 comments

Fatal error: 'break' not in the 'loop' or 'switch' context in \PHPExcel\PHPExcel\Calculation\Functions.php on line 581

This error come out for when download excel file open in excel 2007. if (($value === NULL) || (is_float($value)) || (is_int($value))) { return 1; } elseif(is_bool($value)) { return 4; } elseif(is_array($value)) { return 64; break;// this line error } elseif(is_string($value)) { // Errors if ((strlen($value) > 0) && ($value{0} == '#')) { return 16; } return 2; } return 0; Please fix this problem . Thank you

swapnilb0506 avatar Jan 23 '19 12:01 swapnilb0506

feel free to fix that... i'll accept pr.

segy avatar Jan 23 '19 13:01 segy

please slove this problem @segy

swapnilb0506 avatar Jan 24 '19 12:01 swapnilb0506