Skip to content

Commit cea6ef3

Browse files
authored
Merge pull request #4 from Wikidata/datamodel
Wikibase data model updates
2 parents fa0c656 + 2bf1373 commit cea6ef3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"php": ">=5.5.0",
1616
"benestar/asparagus": "~0.4",
1717
"monolog/monolog": "~1.18",
18-
"wikibase/data-model": "~6.0|~7.0"
18+
"wikibase/data-model": "~6.0|~7.0|~8.0|~9.0"
1919
},
2020
"autoload": {
2121
"psr-4": {

src/EntityImporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function getBadgeItems( array $entities ) {
152152
continue;
153153
}
154154

155-
foreach( $entity->getSiteLinks() as $siteLink ) {
155+
foreach( $entity->getSiteLinkList() as $siteLink ) {
156156
foreach( $siteLink->getBadges() as $badge ) {
157157
$badgeItems[] = $badge->getSerialization();
158158
}

0 commit comments

Comments
 (0)