jenkins-bot has submitted this change and it was merged.
Change subject: DM 1.0 compat: do not use Entity::toArray
......................................................................
DM 1.0 compat: do not use Entity::toArray
Change-Id: Ie53b1851564ef599eeb7d886a7fd41051b7d72a0
---
M repo/includes/content/EntityContent.php
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
WikidataJenkins: Verified
Thiemo Mättig (WMDE): Looks good to me, approved
jenkins-bot: Verified
diff --git a/repo/includes/content/EntityContent.php
b/repo/includes/content/EntityContent.php
index 68d7086..54ecce8 100644
--- a/repo/includes/content/EntityContent.php
+++ b/repo/includes/content/EntityContent.php
@@ -527,7 +527,8 @@
}
// NOTE: this may or may not be consistent with what
EntityContentCodec does!
- return $this->getEntity()->toArray();
+ $serializer =
WikibaseRepo::getDefaultInstance()->getInternalEntitySerializer();
+ return $serializer->serialize( $this->getEntity() );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/149226
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie53b1851564ef599eeb7d886a7fd41051b7d72a0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: WikidataJenkins <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits