diff --git a/language/oop5/abstract.xml b/language/oop5/abstract.xml index 25a242fe69..8c054f5ee2 100644 --- a/language/oop5/abstract.xml +++ b/language/oop5/abstract.xml @@ -18,9 +18,9 @@ visibility. For example, if the abstract method is defined as protected, the function implementation must be defined as either protected or public, but not private. Furthermore - the signatures of the methods must match, i.e. type hints and optional - arguments must be the same. The last restriction also applies to constructors - as of PHP 5.4. Before 5.4 constructor signatures could differ. + the signatures of the methods must match, i.e. the type hints and the number + of required arguments must be the same. This also applies to constructors as + of PHP 5.4. Before 5.4 constructor signatures could differ. diff --git a/language/oop5/changelog.xml b/language/oop5/changelog.xml index 551a5cc9a3..4ff6d1a1c7 100644 --- a/language/oop5/changelog.xml +++ b/language/oop5/changelog.xml @@ -19,8 +19,8 @@ 5.4.0 - Changed: If an abstract class defines a signature for the constructor - it will now be enforced. + Changed: If an abstract class + defines a signature for the constructor it will now be enforced.