Page MenuHomePhabricator

Allow null identities to be attached to commit objects
ClosedPublic

Authored by amckinley on Jun 18 2018, 10:34 PM.
Tags
None
Referenced Files
F13275262: D19496.diff
Fri, May 31, 4:35 AM
F13261354: D19496.diff
Mon, May 27, 12:56 AM
F13258115: D19496.diff
Sun, May 26, 6:50 AM
F13245264: D19496.diff
Thu, May 23, 5:53 AM
F13238789: D19496.id46624.diff
Tue, May 21, 9:14 PM
F13237114: D19496.id.diff
Tue, May 21, 12:27 PM
F13198986: D19496.diff
Mon, May 13, 10:48 AM
F13178275: D19496.diff
Wed, May 8, 8:18 PM
Subscribers

Details

Summary

I landed D19491 a little aggressively, so allow this field to be null until after the migration goes out.

Test Plan

Loaded commits without identity objects; did not get any errors.

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20430
Build 27746: Run Core Tests
Build 27745: arc lint + arc unit

Event Timeline

You can also ClassName $v = null to let null through. PHP is a beautiful wild creature.

This revision is now accepted and ready to land.Jun 19 2018, 7:25 PM

That is, the typehint ClassName $x allows only ClassName objects. The typehint ClassName $x = null allows ClassName objects or null, as an amazing side effect of defaulting the parameter to null.

This revision was automatically updated to reflect the committed changes.