From: Joshua Spence Date: Tue, 7 Oct 2014 21:43:58 +0000 (+1100) Subject: Extend `ArcanistXHPASTLinter::LINT_KEYWORD_CASING` X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f44a6e00a7243bb73b7d0a131b8904eefb4aaddc;p=arcanist.git Extend `ArcanistXHPASTLinter::LINT_KEYWORD_CASING` Summary: Extend `ArcanistXHPASTLinter::LINT_KEYWORD_CASING` to include the `class` keyword. Test Plan: I can't really added a test case for this without getting "XHP19 Class-Filename Mismatch". Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D10653 --- diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php index 37dd5adf..d3e7bb29 100644 --- a/src/lint/linter/ArcanistXHPASTLinter.php +++ b/src/lint/linter/ArcanistXHPASTLinter.php @@ -2566,6 +2566,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter { 'null' => 'null', 'array' => 'array', 'new' => 'new', + 'class' => 'class', ); foreach ($keywords as $keyword) {