Page MenuHomePhabricator

Address continue statement scope
AbandonedPublic

Authored by epriestley on Oct 21 2018, 9:08 PM.
Tags
None
Referenced Files
F18107454: D19749.id47181.diff
Mon, Aug 11, 12:49 AM
F18095159: D19749.id.diff
Thu, Aug 7, 10:32 PM
F17837051: D19749.id.diff
Jul 26 2025, 4:53 PM
F17806634: D19749.diff
Jul 25 2025, 2:00 PM
Unknown Object (File)
Jun 19 2025, 6:52 AM
Unknown Object (File)
Jun 2 2025, 2:08 PM
Unknown Object (File)
May 8 2025, 4:32 PM
Unknown Object (File)
May 7 2025, 6:39 AM
Subscribers

Details

Reviewers
dereckson
Group Reviewers
Blessed Reviewers
Summary

PHP 7.3 throws an exception when a continue is used inside a switch.

As the code intent is to skip the rest of the current outer loop iteration
(the loop containing the switch), there is a need to specify the level.

Test Plan

arc lint

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 21026
Build 28562: arc lint + arc unit

Unit TestsFailed

TimeTest
392 msArcanistPhpcsLinterTestCase::Unknown Unit Message ("")
In 'basics.lint-test', expected lint to raise error on line 2 at char 1, but no error was raised. Actually raised: No messages.
5,163 msArcanistRuboCopLinterTestCase::Unknown Unit Message ("")
In 'convention.lint-test', expected lint to raise warning on line 1 at char 10, but no warning was raised. Actually raised: No messages.
367 msArcanistAbstractMethodBodyXHPASTLinterRuleTestCase::Unknown Unit Message ("")
7 assertions passed.
25 msArcanistAbstractPrivateMethodXHPASTLinterRuleTestCase::Unknown Unit Message ("")
3 assertions passed.
28 msArcanistAliasFunctionXHPASTLinterRuleTestCase::Unknown Unit Message ("")
4 assertions passed.
View Full Test Results (2 Failed · 126 Passed · 27 Skipped)