mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 07:11:04 +01:00
Update continue/break for php 7.3
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. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D19925
This commit is contained in:
parent
c72d29f401
commit
2de632d4fe
1 changed files with 3 additions and 4 deletions
|
@ -55,12 +55,12 @@ final class PhabricatorProjectTransactionEditor
|
|||
case PhabricatorProjectParentTransaction::TRANSACTIONTYPE:
|
||||
case PhabricatorProjectMilestoneTransaction::TRANSACTIONTYPE:
|
||||
if ($xaction->getNewValue() === null) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
if (!$parent_xaction) {
|
||||
$parent_xaction = $xaction;
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
|
||||
$errors[] = new PhabricatorApplicationTransactionValidationError(
|
||||
|
@ -71,8 +71,7 @@ final class PhabricatorProjectTransactionEditor
|
|||
'project or milestone project. A project can not be both a '.
|
||||
'subproject and a milestone.'),
|
||||
$xaction);
|
||||
break;
|
||||
break;
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue