From 7f5b15c6faaf834d3b06e10a05cf975806249a13 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 26 Feb 2014 13:01:45 -0800 Subject: [PATCH] Made some classes final. Summary: Currently, the linter raises `XHP29` warnings for these files because they are not abstract or final. I guess there are two possibly solutions, either making the classes final or marking them as `@concrete-extensible`. Given that there are no subclasses of these classes in the `phabricator`, `arcanist` and `libphutil` repositories... I opted to declare the classes as final. Test Plan: The following linter warnings are gone: ``` >>> Lint for src/aphront/configuration/AphrontDefaultApplicationConfiguration.php: Warning (XHP29) Class Not abstract Or final This class is neither 'final' nor 'abstract', and does not have a docblock marking it '@concrete-extensible'. 3 /** 4 * @group aphront 5 */ >>> 6 class AphrontDefaultApplicationConfiguration 7 extends AphrontApplicationConfiguration { 8 9 public function __construct() { >>> Lint for src/applications/differential/mail/DifferentialReplyHandler.php: Warning (XHP29) Class Not abstract Or final This class is neither 'final' nor 'abstract', and does not have a docblock marking it '@concrete-extensible'. 1 >> 3 class DifferentialReplyHandler extends PhabricatorMailReplyHandler { 4 5 private $receivedMail; 6 ``` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8347 --- .../configuration/AphrontDefaultApplicationConfiguration.php | 3 +++ .../differential/mail/DifferentialReplyHandler.php | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php b/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php index 97bd5740eb..b67954185a 100644 --- a/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php +++ b/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php @@ -1,6 +1,9 @@