PHPOffice / PHPExcel

ARCHIVED
Other
11.46k stars 4.19k forks source link

Compile Error: 'break' not in the 'loop' or 'switch' context #1296

Closed Eldhelion closed 7 years ago

Eldhelion commented 7 years ago

I'm trying to create a excel with multiple sheets, but have reached the following error:

Symfony\Component\Debug\Exception\ FatalErrorException in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php (line 581)

                return 1;
        } elseif(is_bool($value)) {
                return 4;
        } elseif(is_array($value)) {
                return 64;
                break;
        } elseif(is_string($value)) {
            //    Errors
            if ((strlen($value) > 0) && ($value{0} == '#')) {
                return 16;
            }
apurv195 commented 7 years ago

Just COMMENT the "break;" statement in functions.php file on Line No 581

phaniapsr commented 6 years ago

I did not found any break in line 581..

mintysam commented 6 years ago

Try 601