Skip to content

Commit

Permalink
Address @epristley's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Nov 22, 2015
1 parent c4d05a9 commit 68f38e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArcanistExternalJsonLinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function lintPath($path) {
return;
}

$messages = json_decode($output, true);
$messages = phutil_json_decode($output, true);

foreach ($messages as $message) {
if (!empty($message['throw'])) {
Expand Down Expand Up @@ -257,7 +257,7 @@ private function getMessageSeverity(array $message) {
);

if (idx($message, 'severity')) {
$severity_name = strtolower(idx($message, 'severity'));
$severity_name = phutil_utf8_strtolower(idx($message, 'severity'));
if (!idx($map, $severity_name)) {
throw new ArcanistUsageException(
pht('%s: Unknown severity %s', __CLASS__, $severity_name));
Expand Down

0 comments on commit 68f38e4

Please sign in to comment.