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
F13128420: D19496.diff
Tue, Apr 30, 11:53 PM
Unknown Object (File)
Thu, Apr 25, 1:50 AM
Unknown Object (File)
Mar 31 2024, 11:44 PM
Unknown Object (File)
Mar 31 2024, 11:44 PM
Unknown Object (File)
Mar 28 2024, 8:09 AM
Unknown Object (File)
Mar 5 2024, 7:42 AM
Unknown Object (File)
Jan 31 2024, 6:11 PM
Unknown Object (File)
Jan 23 2024, 5:16 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.