Page MenuHomePhabricator

Fix an errant "switch ... continue"
ClosedPublic

Authored by epriestley on Nov 5 2018, 12:42 PM.
Tags
None
Referenced Files
F14755217: D19772.id47234.diff
Tue, Jan 21, 3:57 PM
F14750754: D19772.id.diff
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
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
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.