• Resolved penhtech

    (@penhtech)


    This plugin generates the following warnings when used with PHP 7.3:

    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /srv/www/easylanguages.com/current/web/app/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 1099

    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /srv/www/easylanguages.com/current/web/app/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 1512

    After looking at the code, it seems clear that “continue 2” is what is needed, so I made that change to my local copy and it is working as expected. It would be great if you could also make the change in your code for your next update.

    Note: This may also be the root cause of this issue: https://www.ads-software.com/support/topic/warning-cannot-modify-header-information-199/

    • This topic was modified 5 years, 3 months ago by penhtech.
Viewing 1 replies (of 1 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    Hi there,

    thanks for pointing this out…I wasn’t aware continue could take a numerical value to indicate which loop level to continue.

    After looking at the code, it seems clear that “continue 2” is what is needed,

    yep, glad to discover this.

    so I made that change to my local copy and it is working as expected

    will update the github repo. If you find anything else you might want to improe, feel free to do a PR on the repo and I will pull into the next release.

    cheers,

    Vrata

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7.3 “continue” error’ is closed to new replies.