Page MenuHomePhabricator

Write a linter rule for `$this` reassignment
ClosedPublic

Authored by joshuaspence on Nov 18 2015, 10:42 PM.
Tags
None
Referenced Files
F18712851: D14514.id.diff
Sep 29 2025, 5:33 AM
F18637172: D14514.diff
Sep 17 2025, 6:27 AM
F18584059: D14514.id35111.diff
Sep 11 2025, 11:50 AM
F18346971: D14514.id35111.diff
Aug 26 2025, 2:29 PM
F18085333: D14514.diff
Aug 5 2025, 7:09 PM
F17668049: D14514.id.diff
Jul 12 2025, 10:50 PM
Unknown Object (File)
May 5 2025, 11:08 PM
Unknown Object (File)
May 5 2025, 9:45 PM
Subscribers

Details

Summary

Re-assigning $this is an invalid PHP construct, see https://3v4l.org/TauX9.

Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Write a linter rule for `$this` reassignment.
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.Nov 18 2015, 11:04 PM
This revision was automatically updated to reflect the committed changes.