Page MenuHomePhabricator

Simplify the implementation of `PhabricatorPHIDType` subclasses
ClosedPublic

Authored by joshuaspence on Jul 19 2014, 6:35 AM.
Tags
None
Referenced Files
F13045741: D9985.diff
Thu, Apr 18, 2:57 AM
Unknown Object (File)
Thu, Apr 11, 10:20 AM
Unknown Object (File)
Tue, Apr 9, 7:06 PM
Unknown Object (File)
Sat, Apr 6, 3:58 AM
Unknown Object (File)
Tue, Apr 2, 2:54 AM
Unknown Object (File)
Sun, Mar 31, 5:02 PM
Unknown Object (File)
Sun, Mar 31, 4:49 PM
Unknown Object (File)
Thu, Mar 28, 11:45 AM

Details

Summary

Instead of implementing the getTypeConstant method in all subclasses of PhabricatorPHIDType, provide a final implementation in the base class which uses reflection. See D9837 for a similar implementation.

Test Plan

Ran arc unit.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Simplify the implementation of `PhabricatorPHIDType` subclasses.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.
  • Simplify conditional by using preg_match
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jul 21 2014, 2:03 PM
joshuaspence updated this revision to Diff 24031.

Closed by commit rP254542237a66 (authored by @joshuaspence).