Page MenuHomePhabricator

Address continue statement scope
AbandonedPublic

Authored by epriestley on Oct 21 2018, 9:08 PM.
Tags
None
Referenced Files
F15486837: D19749.id47181.diff
Thu, Apr 10, 9:49 AM
F15465207: D19749.id.diff
Wed, Apr 2, 4:06 PM
F15315249: D19749.diff
Mar 6 2025, 5:42 PM
Unknown Object (File)
Feb 9 2025, 6:36 AM
Unknown Object (File)
Feb 9 2025, 6:36 AM
Unknown Object (File)
Feb 7 2025, 1:58 AM
Unknown Object (File)
Jan 25 2025, 2:29 AM
Unknown Object (File)
Jan 25 2025, 2:29 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)