Page MenuHomePhabricator

Fix an errant "switch ... continue"
ClosedPublic

Authored by epriestley on Nov 5 2018, 12:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 31 2026, 4:24 AM
Unknown Object (File)
May 29 2026, 6:46 AM
Unknown Object (File)
Apr 20 2026, 12:50 PM
Unknown Object (File)
Apr 12 2026, 8:12 PM
Unknown Object (File)
Apr 12 2026, 8:12 PM
Unknown Object (File)
Apr 12 2026, 8:12 PM
Unknown Object (File)
Dec 5 2025, 9:29 AM
Unknown Object (File)
Oct 29 2025, 6:41 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.