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:35] – Changed from abstract final class to static class guilhermeblancorfc:abstract_final_class [2014/12/01 22:35] – Added PR and removed auto-infering of static members 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 static function getRootDirectory()
-      public function getRootDirectory()+
       {       {
           return self::$rootDirectory;           return self::$rootDirectory;
Line 49: Line 48:
 ===== 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