From: Felipe Pena Date: Sat, 6 Aug 2011 15:57:36 +0000 (+0000) Subject: - Added change to UPGRADING X-Git-Tag: php-5.4.0beta1~515 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75a54edf5a4a7feff02085e1f9fbfdf1a7f27969;p=php - Added change to UPGRADING --- 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