mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
Add type hinting for newFromMd5 constructor
Bug: T87142 Change-Id: I2989ff42e48e802c1eed1877f0f2ac9316b5fd21
This commit is contained in:
parent
37e61853b5
commit
4d7f6f8b77
|
@ -104,6 +104,7 @@ abstract class MathRenderer {
|
|||
*/
|
||||
public static function newFromMd5( $md5 ) {
|
||||
$class = get_called_class();
|
||||
/** @var MathRenderer $instance */
|
||||
$instance = new $class;
|
||||
$instance->setMd5( $md5 );
|
||||
$instance->readFromDatabase();
|
||||
|
|
Loading…
Reference in a new issue