Skip to content

Commit ade6979

Browse files
[4.4] Add missing @return annotations
1 parent 7eae617 commit ade6979

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Chunk/ErrorChunk.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ public function didThrow(): bool
115115
return $this->didThrow;
116116
}
117117

118+
/**
119+
* @return array
120+
*/
118121
public function __sleep()
119122
{
120123
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

CurlHttpClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ public function reset()
362362
}
363363
}
364364

365+
/**
366+
* @return array
367+
*/
365368
public function __sleep()
366369
{
367370
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

HttplugClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ public function createUri($uri): UriInterface
218218
throw new \LogicException(sprintf('You cannot use "%s()" as the "nyholm/psr7" package is not installed. Try running "composer require nyholm/psr7".', __METHOD__));
219219
}
220220

221+
/**
222+
* @return array
223+
*/
221224
public function __sleep()
222225
{
223226
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

0 commit comments

Comments
 (0)