]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Extend `ArcanistXHPASTLinter::LINT_KEYWORD_CASING`
authorJoshua Spence <josh@joshuaspence.com>
Tue, 7 Oct 2014 21:43:58 +0000 (08:43 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 7 Oct 2014 21:54:45 +0000 (08:54 +1100)
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

index 37dd5adfc9c92d8e3afb0226e44a9541bad7a069..d3e7bb2992e29c5b1f58089f066044a5cf3cb423 100644 (file)
@@ -2566,6 +2566,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
       'null'  => 'null',
       'array' => 'array',
       'new'   => 'new',
+      'class' => 'class',
     );
 
     foreach ($keywords as $keyword) {