From 75a54edf5a4a7feff02085e1f9fbfdf1a7f27969 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 6 Aug 2011 15:57:36 +0000 Subject: [PATCH] - Added change to UPGRADING --- UPGRADING | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/UPGRADING b/UPGRADING index 9cb926f6db..189bf01f7f 100755 --- 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 -- 2.40.0