Jeroen De Dauw has uploaded a new change for review.
https://gerrit.wikimedia.org/r/186124
Change subject: Stop using deprecated claims method
......................................................................
Stop using deprecated claims method
Change-Id: Ie77219f1c7936ed5d42c09606b306582d556a7ef
---
M repo/includes/ChangeOp/ChangeOpsMerge.php
1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/24/186124/1
diff --git a/repo/includes/ChangeOp/ChangeOpsMerge.php
b/repo/includes/ChangeOp/ChangeOpsMerge.php
index 2db7a48..9808dbd 100644
--- a/repo/includes/ChangeOp/ChangeOpsMerge.php
+++ b/repo/includes/ChangeOp/ChangeOpsMerge.php
@@ -246,11 +246,10 @@
private function findEquivalentClaim( $fromStatement ) {
$fromHash = $this->getClaimHash( $fromStatement );
- /** @var $claim Claim */
- foreach ( $this->toItem->getClaims() as $claim ) {
- $toHash = $this->getClaimHash( $claim );
+ foreach ( $this->toItem->getStatements() as $statement ) {
+ $toHash = $this->getClaimHash( $statement );
if ( $toHash === $fromHash ) {
- return $claim;
+ return $statement;
}
}
return false;
--
To view, visit https://gerrit.wikimedia.org/r/186124
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie77219f1c7936ed5d42c09606b306582d556a7ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits