Devel Error

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/user/public_html/sites/all/modules/contrib/slick/slick_ui/plugins/export_ui/SlickUi.class.php on line 336

Seems this is an issue with PHP 7.3. I don't see any regressions, just a warning from Devel.

CommentFileSizeAuthor
#7 3128140-7.patch582 bytesJacqui.Tenderwolf
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

philsward created an issue. See original summary.

gausarts’s picture

You are right. Thank you.

I remembered I had fixed it, but not all branches.

What is yours? That class is not 8.x.

philsward’s picture

Using ‘continue 2’ is very different than using ‘continue’. If it was coded using continue, it should be left as continue until the developer decides what it should actually be changed to – it could be ‘break’ or it could be ‘continue 2’. If you get the wrong one, the logic will change and the site could break in unexpected ways.

Changing line 336 from continue; to continue 2; made the errors go away. Dunno if this is right or not, but it makes devel shut up.

On a side note, I was getting the errors on a "views" page that had nothing to do with actually using slick. Is the Slick code being called on in places where it shouldn't be? Over my head.

philsward’s picture

7.x-2.1

Did I seriously set that to 8.x-2.x?? If I did, go ahead and change it if you need to. I could have sworn I changed it to 7.x-2.x

gausarts’s picture

Spooky. If you didn't, who did? Check out your room for any astral intruder.

Patches are welcome.

gausarts’s picture

Version: 8.x-2.x-dev » 7.x-2.x-dev
Jacqui.Tenderwolf’s picture

Version: 7.x-2.x-dev » 7.x-2.1
Status: Active » Fixed
FileSize
582 bytes

It looks like this has already been fixed in 7.x-2.x (thank you), but for those who want to keep running the 7.x-2.1 release, here is a patch. Marking issue as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.