-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.5
-
None
In a variety of MDLs we added fallbacks for legacy constructors. It's time they were removed.
Example:
|
/**
|
* Old syntax of class constructor. Deprecated in PHP7.
|
*
|
* @deprecated since Moodle 3.1
|
*/
|
public function auth_plugin_cas() {
|
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
|
self::__construct();
|
}
|
I believe these can be straight deprecated as I don't believe it's possible to call them in any current version of PHP in a meaningful way.
Proof: https://3v4l.org/qoPc3