Add type hinting for newFromMd5 constructor

Bug: T87142
Change-Id: I2989ff42e48e802c1eed1877f0f2ac9316b5fd21
This commit is contained in:
physikerwelt (Moritz Schubotz) 2014-12-09 22:59:09 +09:00 committed by Krinkle
parent 37e61853b5
commit 4d7f6f8b77

View file

@ -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();