Page MenuHomePhabricator

Fix an errant "switch ... continue"
ClosedPublic

Authored by epriestley on Nov 5 2018, 12:42 PM.
Tags
None
Referenced Files
F14759898: D19772.diff
Wed, Jan 22, 2:48 PM
F14755217: D19772.id47234.diff
Tue, Jan 21, 3:57 PM
Unknown Object (File)
Tue, Jan 21, 11:57 AM
Unknown Object (File)
Fri, Jan 3, 10:00 PM
Unknown Object (File)
Dec 22 2024, 5:06 AM
Unknown Object (File)
Dec 9 2024, 3:51 PM
Unknown Object (File)
Dec 8 2024, 4:37 PM
Unknown Object (File)
Dec 1 2024, 3:53 PM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/unhandled-exception-on-create-task/2062.

This construction has the same behavior as "switch ... break" but is unconventional. PHP 7.3 started warning about it because it's likely a mistake.

Test Plan

Created a task, edited a task owner. The new code is functionally identical to the old code.

Diff Detail

Repository
rP Phabricator
Branch
break1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21080
Build 28645: Run Core Tests
Build 28644: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Nov 5 2018, 3:32 PM
This revision was automatically updated to reflect the committed changes.