rfc:abstract_final_class

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:abstract_final_class [2014/11/28 19:36] guilhermeblancorfc:abstract_final_class [2014/12/12 15:41] guilhermeblanco
Line 23: Line 23:
 ===== Proposal ===== ===== Proposal =====
  
-Change language scanner to accept static class construction, and subsequently auto-infering static members.+Change language scanner to accept static class construction, and subsequently enforcing the existence of only static members.
  
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
Line 34: Line 34:
   {   {
       private static $rootDirectory = '/var/www/project';       private static $rootDirectory = '/var/www/project';
-      public function getRootDirectory()+      public static function getRootDirectory()
       {       {
           return self::$rootDirectory;           return self::$rootDirectory;
Line 42: Line 42:
   echo Environment::getRootDirectory();   echo Environment::getRootDirectory();
  
-===== Proposed Voting Choices ===== +===== Vote ===== 
- +<doodle title="Static classes" auth="guilhermeblanco" voteType="single" closed="false"> 
-Since this is a language update, it requires 2/3 of acceptance+   * Yes 
 +   * No 
 +</doodle> 
 +\\ 
 +The vote starts on 12/12/2014 and ends on 12/19/2014. 2/3 majority required.
  
 ===== Implementation ===== ===== Implementation =====
  
-To be updated. Originally suggested as abstract class at https://github.com/php/php-src/pull/923+Most recent suggested implementation available at https://github.com/php/php-src/pull/929 
 +Originally suggested as abstract class at https://github.com/php/php-src/pull/923
rfc/abstract_final_class.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1