Message: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in PHPExcel

Software used to Create:

  • PHP 7
  • PHPExcel (now already deprecated)

Software used to open:

  • Excel 2010

Problem:

When i open the excel file as a result from downloaded then the error appear like this :

<h4>A PHP Error was encountered</h4>	
<p>Severity: Warning</p>										
<p>Message:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?</p>										
<p>Filename: Shared/OLE.php</p>										
<p>Line Number: 290</p>										

Question:

How to fix it … ?

Answer:

Open the file OLE.php at line 290 and changing:

default:
continue;

With this one

default:
break;

Thanks for reading

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *