Page MenuHomePhabricator

Write a linter rule for `$this` reassignment
ClosedPublic

Authored by joshuaspence on Nov 18 2015, 10:42 PM.
Tags
None
Referenced Files
F14095758: D14514.diff
Mon, Nov 25, 11:35 PM
Unknown Object (File)
Fri, Nov 8, 8:42 PM
Unknown Object (File)
Fri, Nov 8, 8:42 PM
Unknown Object (File)
Fri, Nov 8, 8:42 PM
Unknown Object (File)
Oct 15 2024, 10:07 AM
Unknown Object (File)
Oct 15 2024, 8:22 AM
Unknown Object (File)
Sep 30 2024, 10:00 PM
Unknown Object (File)
Sep 29 2024, 12:59 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
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 8921
Build 10458: Run Core Tests
Build 10457: arc lint + arc unit

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.