Page MenuHomePhabricator

Address continue statement scope
AbandonedPublic

Authored by epriestley on Oct 21 2018, 9:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 3, 12:15 AM
Unknown Object (File)
Nov 20 2024, 8:36 PM
Unknown Object (File)
Nov 20 2024, 11:24 AM
Unknown Object (File)
Nov 19 2024, 8:05 AM
Unknown Object (File)
Nov 3 2024, 1:39 PM
Unknown Object (File)
Oct 15 2024, 8:25 AM
Unknown Object (File)
Aug 18 2024, 6:35 PM
Unknown Object (File)
Aug 15 2024, 8:32 PM
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)