Commit b297a03
committed
General: PHP 7.3 throws an
Applying continue to a switch is equivalent to using break and quite possibly, a continue targeting a higher level control structure is actually intended.
To target the higher level control structure, a numeric argument has to be passed to continue. This fixes two cases in WordPress Core where this is currently happening.
See: php/php-src#3364
See: https://wiki.php.net/rfc/continue_on_switch_deprecation
Props jrf.
Merges [43653] to the 4.9 branch.
Fixes #44543.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43656 602fd350-edb4-49c9-b593-d223f7449a82E_WARNING when using continue to target a switch.1 parent 830632f commit b297a03
File tree
2 files changed
+2
-2
lines changed- src/wp-includes/pomo
- tests/phpunit/includes
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
0 commit comments