]> khamidou — GitHub mirrors - arcanist.git/commit
Parse JSON as an associate array.
authorJoshua Spence <josh@joshuaspence.com>
Tue, 6 May 2014 04:18:43 +0000 (21:18 -0700)
committerepriestley <git@epriestley.com>
Tue, 6 May 2014 04:18:43 +0000 (21:18 -0700)
commit9a13c87ac4a944273aba112a06f710ce73703cd1
tree3624befdf6f21ebec69e7f099a1fc95a870eef50
parent8523b98f396d4a2dbeb1dd58f2b1a071ad0f748e
Parse JSON as an associate array.

Summary:
It seems that in some situations, JSHint does not set the `evidence`
property. In such cases, PHP fails with `Undefined property:
stdClass::$evidence`. It would be safer to access the error object as an
associative array rather than as `stdClass`.

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8993
src/lint/linter/ArcanistJSHintLinter.php