Skip to content

Commit c62945b

Browse files
umherirrenderWMDE bot
authored andcommitted
lib: Use type declaration on undocumented private functions
Change-Id: Ieee119e678d8993ea15a8fd9efb4a301375d0c3a
1 parent 30a958f commit c62945b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Diff/Internal/SiteLinkListPatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static function( $idSerialization ) {
7171
);
7272
}
7373

74-
private function getSiteLinksInDiffFormat( SiteLinkList $siteLinks ) {
74+
private function getSiteLinksInDiffFormat( SiteLinkList $siteLinks ): array {
7575
$linksInDiffFormat = [];
7676

7777
foreach ( $siteLinks->toArray() as $siteLink ) {

src/Diff/ItemDiffer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function diffItems( Item $from, Item $to ) {
7272
return new ItemDiff( $diffOps );
7373
}
7474

75-
private function toDiffArray( Item $item ) {
75+
private function toDiffArray( Item $item ): array {
7676
$array = [];
7777

7878
$array['aliases'] = $item->getAliasGroups()->toTextArray();
@@ -83,7 +83,7 @@ private function toDiffArray( Item $item ) {
8383
return $array;
8484
}
8585

86-
private function getSiteLinksInDiffFormat( SiteLinkList $siteLinks ) {
86+
private function getSiteLinksInDiffFormat( SiteLinkList $siteLinks ): array {
8787
$linksInDiffFormat = [];
8888

8989
foreach ( $siteLinks->toArray() as $siteLink ) {

src/Diff/StatementListDiffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private function newDiffer() {
4040
return new MapDiffer( false, null, new ComparableComparer() );
4141
}
4242

43-
private function toDiffArray( StatementList $statementList ) {
43+
private function toDiffArray( StatementList $statementList ): array {
4444
$statementArray = [];
4545

4646
/**

0 commit comments

Comments
 (0)