]> khamidou — GitHub mirrors - arcanist.git/commit
Write a linter rule for `$this` reassignment
authorJoshua Spence <josh@freelancer.com>
Thu, 19 Nov 2015 19:50:27 +0000 (06:50 +1100)
committerJoshua Spence <josh@freelancer.com>
Thu, 19 Nov 2015 19:50:27 +0000 (06:50 +1100)
commit581829a99ee8e4651f03d0782e7c774df76951b0
treecefd4696b2057bcc4f54f68b485ed7709e357d75
parent426d535b13d7ebfc31f4785d65120d76fb748e7a
Write a linter rule for `$this` reassignment

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

Test Plan: Added unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14514
src/__phutil_library_map__.php
src/lint/linter/xhpast/rules/ArcanistThisReassignmentXHPASTLinterRule.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistThisReassignmentXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/this-reassignment/class.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/this-reassignment/this.lint-test [new file with mode: 0644]