Page MenuHomePhabricator

Remove extra parameter in newStandardEditField() call
ClosedPublic

Authored by epriestley on Feb 16 2017, 3:02 PM.
Tags
None
Referenced Files
F19515785: D17370.id.diff
Wed, Jan 14, 3:47 PM
F19513365: D17370.diff
Tue, Jan 13, 11:50 AM
F19513189: D17370.id41768.diff
Tue, Jan 13, 9:21 AM
F19512951: D17370.diff
Tue, Jan 13, 5:20 AM
F19014161: D17370.diff
Nov 22 2025, 6:54 PM
F18814207: D17370.diff
Oct 20 2025, 10:19 PM
F18809623: D17370.id.diff
Oct 19 2025, 3:40 PM
F18806252: D17370.diff
Oct 18 2025, 6:38 PM
Subscribers
None

Details

Summary

See D14617. This could probably go either way but we don't currently need $engine in newStandardEditField(), so just get rid of it.

Test Plan

Edited a task with standard custom fields defined.

Diff Detail

Repository
rP Phabricator
Branch
stan2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15664
Build 20685: Run Core Tests
Build 20684: arc lint + arc unit

Event Timeline

src/infrastructure/customfield/field/PhabricatorCustomField.php
1097

Perhaps remove the parameter too, it's now unused.

I think subclasses might reasonably want to override this method and need access to $engine to do so. This is theoretical in the upstream, but PhabricatorCustomField is extensible by third-party code, and we have some (non-custom) fields in first-party applications where behavior depends on $editor (for example, fields which only appear on either the "create" or "edit" screen, but not both).

This revision is now accepted and ready to land.Feb 16 2017, 4:50 PM
This revision was automatically updated to reflect the committed changes.