MDL-52285 auth: Add constructors for backwards compat
These are very unlikely to be used but just to be safe..
This commit is contained in:
@@ -21,6 +21,16 @@ class mnet_encxml_parser {
|
||||
return $this->initialise();
|
||||
}
|
||||
|
||||
/**
|
||||
* Old syntax of class constructor. Deprecated in PHP7.
|
||||
*
|
||||
* @deprecated since Moodle 3.1
|
||||
*/
|
||||
public function mnet_encxml_parser() {
|
||||
debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
|
||||
self::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default element handlers and initialise properties to empty.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user