HomePhabricator

Parse JSON as an associate array.

Description

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

Details

Provenance
joshuaspenceAuthored on
epriestleyCommitted on May 6 2014, 4:18 AM
epriestleyPushed on May 6 2014, 4:19 AM
Reviewer
Blessed Reviewers
Differential Revision
D8993: Parse JSON as an associate array.
Parents
rARC8523b98f396d: Add a `puppet-lint` linter.
Branches
Unknown
Tags
Unknown

Event Timeline