Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/123826
Change subject: Use SimpleSiteLink (for now) in UpdateRepo ...................................................................... Use SimpleSiteLink (for now) in UpdateRepo We do need to eliminate usages of SimpleSiteLink, bug this provides workaround (for now) to avoid fatal error that sometimes occurs when running phpunit tests. "Fatal error: Cannot use Wikibase\DataModel\SiteLink as SiteLink because the name is already in use" We can then sort out usage of SimpleSiteLink in Wikibase. Bug: 63407 Change-Id: Id80823f64d4d49b1b292061cf9c367409b2fc5c5 --- M client/includes/UpdateRepo.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/26/123826/1 diff --git a/client/includes/UpdateRepo.php b/client/includes/UpdateRepo.php index 6e560d4..d889ddc 100644 --- a/client/includes/UpdateRepo.php +++ b/client/includes/UpdateRepo.php @@ -8,7 +8,7 @@ use RuntimeException; use Title; use User; -use Wikibase\DataModel\SiteLink; +use Wikibase\DataModel\SimpleSiteLink; use JobSpecification; /** @@ -81,7 +81,7 @@ public function getEntityId() { if ( $this->entityId === false ) { $this->entityId = $this->siteLinkLookup->getEntityIdForSiteLink( - new SiteLink( + new SimpleSiteLink( $this->siteId, $this->title->getFullText() ) -- To view, visit https://gerrit.wikimedia.org/r/123826 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id80823f64d4d49b1b292061cf9c367409b2fc5c5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits