Thiemo Mättig (WMDE) has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/336835 )
Change subject: Simplify LexemeId serialization
......................................................................
Simplify LexemeId serialization
This is not a braking change because this component is not in
production anyway.
Change-Id: I66f1851864fb628bd6c3d600269cca199e4ade47
---
M src/DataModel/LexemeId.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseLexeme
refs/changes/35/336835/1
diff --git a/src/DataModel/LexemeId.php b/src/DataModel/LexemeId.php
index a50700d..3f3261c 100644
--- a/src/DataModel/LexemeId.php
+++ b/src/DataModel/LexemeId.php
@@ -54,7 +54,7 @@
* @return string
*/
public function serialize() {
- return json_encode( [ 'lexeme', $this->serialization ] );
+ return $this->serialization;
}
/**
@@ -63,7 +63,7 @@
* @param string $serialized
*/
public function unserialize( $serialized ) {
- list( , $this->serialization ) = json_decode( $serialized );
+ $this->serialization = $serialized;
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/336835
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I66f1851864fb628bd6c3d600269cca199e4ade47
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseLexeme
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits