Skip to content

Commit 28a2f9e

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 1430235 commit 28a2f9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/NewStatement.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ public function withRank( $rank ) {
125125
return $result;
126126
}
127127

128-
public function withDeprecatedRank() {
128+
public function withDeprecatedRank(): self {
129129
return $this->withRank( Statement::RANK_DEPRECATED );
130130
}
131131

132-
public function withNormalRank() {
132+
public function withNormalRank(): self {
133133
return $this->withRank( Statement::RANK_NORMAL );
134134
}
135135

136-
public function withPreferredRank() {
136+
public function withPreferredRank(): self {
137137
return $this->withRank( Statement::RANK_PREFERRED );
138138
}
139139

@@ -246,7 +246,7 @@ public function build() {
246246
return $result;
247247
}
248248

249-
private function generateUuidV4() {
249+
private function generateUuidV4(): string {
250250
return sprintf(
251251
'%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
252252
mt_rand( 0, 0xffff ),

0 commit comments

Comments
 (0)