Description
The code from old PHP 4 style constructors methods should be moved to the PHP 5 style constructor ``__construct()``. IMHO it improves readability of the code a lot.
Old constructors need to remain available for at least 1 major version, because otherwise child classes calling the parent's constructor will be broken (for example workflow event types, datatypes, ...). The old constructors can write a warning message that they are deprecated and call ``__construct``.
In a later phase, the old PHP 4 style constructors can be removed.
Attachments
Issue Links
- relates to
-
EZP-27804 Avoid PHP7 deprecation errors when running legacy
- Closed