Page MenuHomePhabricator

Return `$this` from setter methods
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 8:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 7:40 PM
Unknown Object (File)
Sat, Dec 14, 4:57 PM
Unknown Object (File)
Wed, Dec 11, 9:47 AM
Unknown Object (File)
Wed, Dec 11, 8:00 AM
Unknown Object (File)
Mon, Dec 9, 12:28 AM
Unknown Object (File)
Sat, Dec 7, 1:44 AM
Unknown Object (File)
Tue, Dec 3, 4:15 PM
Unknown Object (File)
Fri, Nov 29, 3:26 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.