Page MenuHomePhabricator

Update continue/break for php 7.3
ClosedPublic

Authored by amckinley on Dec 20 2018, 9:53 PM.
Tags
None
Referenced Files
F18688326: D19925.id.diff
Fri, Sep 26, 4:23 PM
F18626993: D19925.id47552.diff
Sep 16 2025, 2:56 AM
F18510061: D19925.id.diff
Sep 5 2025, 3:45 AM
F18503721: D19925.diff
Sep 4 2025, 11:19 PM
F18179805: D19925.id47552.diff
Aug 16 2025, 4:20 AM
F18173140: D19925.id47550.diff
Aug 15 2025, 7:27 PM
F18136149: D19925.diff
Aug 14 2025, 12:48 AM
F17912309: D19925.diff
Jul 29 2025, 4:03 PM
Subscribers

Details

Summary

Fixes https://discourse.phabricator-community.org/t/error-on-project-creation-or-edition-with-php7-3/2236

I didn't actually repro this because I don't have php 7.3 installed. I'm also not sure if the break; break was intentional or not, since I'm not sure you could ever reach two consecutive break statements.

Test Plan

Created some projects. Didn't actually try to hit the code that fires if you're making a project both a subproject and a milestone.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

These could all just be break; if you want, none of this is intentional.

This revision is now accepted and ready to land.Dec 20 2018, 9:56 PM

(I think you could only actually hit this by calling project.edit via the API and intentionally feeding in two conflicting transactions, but this or just break; are "obviously correct".)

This revision was automatically updated to reflect the committed changes.