]> khamidou — GitHub mirrors - arcanist.git/commit
Fix the `ArcanistXHPASTLinter` single quote rule.
authorJoshua Spence <josh@joshuaspence.com>
Sun, 18 May 2014 13:47:37 +0000 (06:47 -0700)
committerepriestley <git@epriestley.com>
Sun, 18 May 2014 13:47:37 +0000 (06:47 -0700)
commit178b32c6c2d64fcbe51a99cf84606950d48d1a0c
tree921e34c8bf880a0e82d079ed8a5288bdd2a98ba5
parentb21a420071e9c7cd75e61f6664cba1fbe809bb3a
Fix the `ArcanistXHPASTLinter` single quote rule.

Summary: Previously, the `ArcanistXHPASTLinter` was suggesting that `"\1"` be written as `'\1'`, which is incorrect. Therefore, I ensured that all of the cases listed in the [[http://www.php.net/manual/en/language.types.string.php | PHP documentation]] were handled correctly.

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9182
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/double-quote.lint-test