Page MenuHomePhabricator

Allow PhutilClassMapQuery to filter null
ClosedPublic

Authored by joshuaspence on Jul 7 2015, 10:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
May 23 2025, 4:57 AM
Unknown Object (File)
May 9 2025, 7:11 AM
Unknown Object (File)
May 7 2025, 1:34 AM
Unknown Object (File)
Apr 17 2025, 4:15 AM
Unknown Object (File)
Apr 2 2025, 9:45 PM
Unknown Object (File)
Mar 28 2025, 11:37 PM
Unknown Object (File)
Mar 22 2025, 4:43 PM
Unknown Object (File)
Mar 20 2025, 6:19 AM
Subscribers

Details

Summary

Allow PhutilClassMapQuery to filter objects which return null from the "unique" method.

Test Plan

See next diff.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Allow PhutilClassMapQuery to filter null.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/symbols/PhutilClassMapQuery.php
79–81

Prefer documenting.

This revision is now accepted and ready to land.Jul 7 2015, 12:36 PM

FWIW, I find the method signature pretty awkward, but it seemed better than adding a filterNull() method.

I think it's OK. Not ideal, but does seem cleaner than a separate method.

And likewise cleaner than a setUniqueButAlsoNullFitleringMethod(...) method.

This revision was automatically updated to reflect the committed changes.