protected static function callHooks() { if (self::$hookCalled) { return; } self::$hookCalled = true; wfRunHooks('typechecker', array(&self::$types)); }