Skip to content

Commit 3cdde24

Browse files
[5.2] Add missing @return annotations
1 parent ff22186 commit 3cdde24

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)