Page MenuHomePhabricator

Write a linter rule for `$this` reassignment
ClosedPublic

Authored by joshuaspence on Nov 18 2015, 10:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 6, 12:43 AM
Unknown Object (File)
Aug 14 2026, 12:55 AM
Unknown Object (File)
Aug 9 2026, 12:31 AM
Unknown Object (File)
Aug 2 2026, 10:30 PM
Unknown Object (File)
Apr 16 2026, 3:28 AM
Unknown Object (File)
Mar 15 2026, 7:15 AM
Unknown Object (File)
Feb 25 2026, 5:46 PM
Unknown Object (File)
Feb 10 2026, 6:56 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.