Skip to content

Commit 9d11fc6

Browse files
umherirrenderWMDE bot
authored andcommitted
Add documentation to undocumented parameterless functions
Parameterless function are not required to have the return value documented, but it is best practice and may change (T272803) Change-Id: I7f00ee837b53eaf9dfc2749810e0a82cd83c66f0
1 parent 6e01991 commit 9d11fc6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Diff/StatementListDiffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getDiff( StatementList $fromStatements, StatementList $toStateme
3636
);
3737
}
3838

39-
private function newDiffer() {
39+
private function newDiffer(): MapDiffer {
4040
return new MapDiffer( false, null, new ComparableComparer() );
4141
}
4242

tests/fixtures/ItemFixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class ItemFixtures {
1313

14-
public static function newItem() {
14+
public static function newItem(): Item {
1515
return new Item(
1616
new ItemId( 'Q1' )
1717
);

tests/fixtures/PropertyFixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class PropertyFixtures {
1313

14-
public static function newProperty() {
14+
public static function newProperty(): Property {
1515
return new Property(
1616
new NumericPropertyId( 'P1' ),
1717
null,

0 commit comments

Comments
 (0)