]> granicus.if.org Git - php/commitdiff
- Added change to UPGRADING
authorFelipe Pena <felipe@php.net>
Sat, 6 Aug 2011 15:57:36 +0000 (15:57 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 6 Aug 2011 15:57:36 +0000 (15:57 +0000)
UPGRADING

index 9cb926f6db896e22ddc6639bca58594d29a21d7e..189bf01f7fd7e2f2d827873fb7b2b5eddac3d8a5 100755 (executable)
--- a/UPGRADING
+++ b/UPGRADING
@@ -101,6 +101,20 @@ UPGRADE NOTES - PHP X.Y
   To create a generic object you can use StdClass:
   $test = new StdClass;
   $text->baz = 1;
+  
+- It's now possible to enforce the class' __construct arguments in an abstract
+  constructor in the base class.
+
+  abstract class Base
+  {
+    abstract public function __construct();
+  }
+  class Foo extends Base
+  {
+    public function __construct($bar) {}
+  }
+  
+  Now emits a Fatal error due the incompatible declaration.
 
 =====================================
 4. Changes made to existing functions