Page MenuHomePhabricator

Write a linter rule for `$this` reassignment
ClosedPublic

Authored by joshuaspence on Nov 18 2015, 10:42 PM.
Tags
None
Referenced Files
F13165945: D14514.diff
Tue, May 7, 5:42 AM
Unknown Object (File)
Mon, Apr 22, 2:54 AM
Unknown Object (File)
Mar 29 2024, 1:35 PM
Unknown Object (File)
Mar 23 2024, 11:29 PM
Unknown Object (File)
Mar 7 2024, 4:55 PM
Unknown Object (File)
Mar 6 2024, 5:22 AM
Unknown Object (File)
Mar 6 2024, 5:22 AM
Unknown Object (File)
Mar 6 2024, 4:45 AM
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.