diff --git a/language/oop5/changelog.xml b/language/oop5/changelog.xml index d653439a46..bf49a09bc5 100644 --- a/language/oop5/changelog.xml +++ b/language/oop5/changelog.xml @@ -16,6 +16,16 @@ + + 5.3.3 + + Changed: Methods with the same name as the last element of + a namespaced + class name will no longer be treated as constructor. This change doesn't + affect non-namespaced classes. + + 5.3.0 diff --git a/language/oop5/decon.xml b/language/oop5/decon.xml index b7337e2929..52e730f27e 100644 --- a/language/oop5/decon.xml +++ b/language/oop5/decon.xml @@ -62,6 +62,27 @@ $obj = new SubClass(); __construct is overridden with different parameters than the parent __construct method has. + + As of PHP 5.3.3, methods with the same name as the last element of a + namespaced class name will no longer be treated as constructor. This + change doesn't affect non-namespaced classes. + + + Constructors in namespaced classes + + +]]> + +