8000 minor #42247 [5.2] Add missing ``@return`` annotations (nicolas-grekas) · YaFou/symfony@74d99ae · GitHub
Skip to content

Commit 74d99ae

Browse files
minor symfony#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 symfony#42246 for 5.2 Commits ------- 7c10e09 [5.2] Add missing ``@return`` annotations
2 parents 05dadd7 + 7c10e09 commit 74d99ae

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

src/Symfony/Component/HttpClient/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__);

src/Symfony/Component/HttpClient/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__);

src/Symfony/Component/HttpClient/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__);

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ public function __construct(array $configuration, SqsClient $client = null, stri
6464
$this->queueUrl = $queueUrl;
6565
}
6666

67+
/**
68+
* @return array
69+
*/
6770
public function __sleep()
6871
{
6972
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/PostgreSqlConnection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ final class PostgreSqlConnection extends Connection
3535

3636
private $listening = false;
3737

38+
/**
39+
* @return array
40+
*/
3841
public function __sleep()
3942
{
4043
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

src/Symfony/Component/Semaphore/Semaphore.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public function __construct(Key $key, PersistingStoreInterface $store, float $tt
4848
$this->logger = new NullLogger();
4949
}
5050

51+
/**
52+
* @return array
53+
*/
5154
public function __sleep()
5255
{
5356
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

0 commit comments

Comments
 (0)
0