jenkins-bot has submitted this change and it was merged.

Change subject: Temporarily re-add JsonSchemaContent::getJsonData
......................................................................


Temporarily re-add JsonSchemaContent::getJsonData

To avoid tests failing due to deprecation notices.

Change-Id: I4bc22edf255b75849c940e70066c30107575477f
---
M includes/JsonSchemaContent.php
1 file changed, 8 insertions(+), 0 deletions(-)

Approvals:
  QChris: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/JsonSchemaContent.php b/includes/JsonSchemaContent.php
index 96e5709..22b53f8 100644
--- a/includes/JsonSchemaContent.php
+++ b/includes/JsonSchemaContent.php
@@ -52,6 +52,14 @@
        }
 
        /**
+        * Decodes the JSON schema into a PHP associative array.
+        * @return array: Schema array.
+        */
+       function getJsonData() {
+               return FormatJson::decode( $this->getNativeData(), true );
+       }
+
+       /**
         * @throws JsonSchemaException: If invalid.
         * @return bool: True if valid.
         */

-- 
To view, visit https://gerrit.wikimedia.org/r/181019
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4bc22edf255b75849c940e70066c30107575477f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: QChris <christ...@quelltextlich.at>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to