Changeset View
Changeset View
Standalone View
Standalone View
arcanist/linter/StdintLinter.php
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | if (preg_match_all('/unsigned (?:char|short)/', $fileContent, $matches, | ||||
list($errorCode, $replacement) = self::TYPE_MAPPING[$unsignedType]; | list($errorCode, $replacement) = self::TYPE_MAPPING[$unsignedType]; | ||||
$this->raiseLintAtOffset( | $this->raiseLintAtOffset( | ||||
$offset, | $offset, | ||||
$errorCode, | $errorCode, | ||||
pht( | pht( | ||||
'`'.$replacement.'` should be preferred over `'.$unsignedType.'`'), | '`'.$replacement.'` should be preferred over `'.$unsignedType.'`'), | ||||
$unsignedType, | $unsignedType, | ||||
$replacement, | $replacement | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } |