Page MenuHomePhabricator

Return `$this` from setter methods
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 8:34 AM.
Tags
None
Referenced Files
F13039383: D13422.diff
Tue, Apr 16, 7:07 AM
Unknown Object (File)
Sat, Apr 6, 9:27 PM
Unknown Object (File)
Thu, Mar 28, 3:13 PM
Unknown Object (File)
Mon, Mar 25, 1:59 PM
Unknown Object (File)
Mar 15 2024, 3:55 PM
Unknown Object (File)
Mar 15 2024, 3:38 PM
Unknown Object (File)
Mar 15 2024, 3:27 PM
Unknown Object (File)
Mar 15 2024, 2:39 PM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rPf2435fd1d0b5: Return `$this` from setter methods
Summary

Return $this from setter methods for consistency. I started writing a linter rule to detect this, but I don't think it is trivial to do this properly.

Test Plan

Eyeball it.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Return `$this` from setter methods.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 25 2015, 10:58 PM
This revision was automatically updated to reflect the committed changes.