The PHPCompatibility sniffer for PHPCS flagged an issues related to "Using 'continue' outside of a loop or switch structure"
$ phpcs --standard=PHPCompatibility --runtime-set testVersion 7.1 contrib/ultimate_cron
FILE: ...docroot/modules/contrib/ultimate_cron/src/CronPluginMultiple.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
45 | ERROR | Using 'continue' outside of a loop or switch structure
| | is invalid and will throw a fatal error since PHP 7.0
----------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#2 | continue_in_loop-2890428-2.patch | 409 bytes | Mojiferous |
|
Comments
Comment #2
MojiferousComment #3
17chances CreditAttribution: 17chances as a volunteer commentedLooks good, +1 for RTBC
Comment #5
BerdirThanks, I think that's dead code but committed.