Skip to content

Commit 1895ede

Browse files
minor #42247 [5.2] Add missing @return annotations (nicolas-grekas)
This PR was merged into the 5.2 branch. Discussion ---------- [5.2] Add missing ``@return`` annotations | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Same as #42246 for 5.2 Commits ------- 7c10e093b8 [5.2] Add missing ``@return`` annotations
2 parents 3446ac4 + 3cdde24 commit 1895ede

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Response/AmpResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ public function getInfo(string $type = null)
142142
return null !== $type ? $this->info[$type] ?? null : $this->info;
143143
}
144144

145+
/**
146+
* @return array
147+
*/
145148
public function __sleep()
146149
{
147150
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

Response/CommonResponseTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ public function toStream(bool $throw = true)
127127
return $stream;
128128
}
129129

130+
/**
131+
* @return array
132+
*/
130133
public function __sleep()
131134
{
132135
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

Response/TraceableResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public function __construct(HttpClientInterface $client, ResponseInterface $resp
4444
$this->event = $event;
4545
}
4646

47+
/**
48+
* @return array
49+
*/
4750
public function __sleep()
4851
{
4952
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

0 commit comments

Comments
 (0)