Page MenuHomePhabricator

Return `$this` from setter methods
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 8:34 AM.
Tags
None
Referenced Files
F18770211: D13422.diff
Wed, Oct 8, 11:22 AM
F18727237: D13422.id32762.diff
Tue, Sep 30, 7:45 AM
F18505958: D13422.id.diff
Sep 5 2025, 1:07 AM
F18498511: D13422.diff
Sep 4 2025, 6:47 PM
F18396782: D13422.diff
Aug 29 2025, 12:48 PM
F18396675: D13422.diff
Aug 29 2025, 12:39 PM
F18383692: D13422.id32762.diff
Aug 28 2025, 11:18 PM
F18383661: D13422.id.diff
Aug 28 2025, 11:16 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 6988
Build 7033: [Placeholder Plan] Wait for 30 Seconds
Build 7032: arc lint + arc unit

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.