]> khamidou — GitHub mirrors - arcanist.git/commit
Stop undeclared variable warning for $obj->{$prop} syntax
authorepriestley <git@epriestley.com>
Thu, 12 May 2011 01:51:25 +0000 (18:51 -0700)
committerepriestley <git@epriestley.com>
Thu, 12 May 2011 05:06:03 +0000 (22:06 -0700)
commit3edd525f836e35601996db2f5c91255d110ca1a6
tree44de022302ec01fb3a1f671a0b8572bc39199a57
parent23afdb99f0cf3852ddd5fdbffea2cfec64c8b355
Stop undeclared variable warning for $obj->{$prop} syntax

Summary:
This isn't necessarily a root-cause solution but this syntax is really really
bad. If we want to fix the root cause, I'd recommend making its use a lint
error?

Test Plan:
Unit tests failed before patch, passed afterward.

Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
CC: aran
Differential Revision: 270
src/lint/linter/xhpast/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/__tests__/data/undeclared-variables.lint-test