]> khamidou — GitHub mirrors - arcanist.git/commit
Add lint warning for $o->m()[0], not just f()[0]
authorepriestley <git@epriestley.com>
Tue, 12 Feb 2013 15:07:35 +0000 (07:07 -0800)
committerepriestley <git@epriestley.com>
Tue, 12 Feb 2013 15:07:35 +0000 (07:07 -0800)
commit42ae7cd92f92e026bdd604e659d2bc23e9352baa
treeb34be8d976761146c68f2271830d75c73c38b79c
parent2419718593965b925484bbcff84ac98510b586e3
Add lint warning for $o->m()[0], not just f()[0]

Summary: We only caught half of this.

Test Plan: Unit test.

Reviewers: edward

Reviewed By: edward

CC: aran
Maniphest Tasks: T1261

Differential Revision: https://secure.phabricator.com/D4920
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/php54.lint-test [new file with mode: 0644]