From f44a6e00a7243bb73b7d0a131b8904eefb4aaddc Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 8 Oct 2014 08:43:58 +1100 Subject: [PATCH] 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 --- src/lint/linter/ArcanistXHPASTLinter.php | 1 + 1 file changed, 1 insertion(+) 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) {