Skip to content

Commit

Permalink
Merge branch '5.2' into 5.3
Browse files Browse the repository at this point in the history
* 5.2:
  [5.2] Add missing `@return` annotations
  [4.4] Add missing `@return` annotations
  Handle lock with long key
  #42227 update phpdoc to recommend createIndex over ensureIndex
  • Loading branch information
nicolas-grekas committed Jul 23, 2021
2 parents 5c1a20b + 1895ede commit 67c177d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Chunk/ErrorChunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public function didThrow(bool $didThrow = null): bool
return $this->didThrow;
}

/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
Expand Down
3 changes: 3 additions & 0 deletions CurlHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ public function reset()
$this->multi->reset();
}

/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
Expand Down
3 changes: 3 additions & 0 deletions HttplugClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ public function createUri($uri): UriInterface
throw new \LogicException(sprintf('You cannot use "%s()" as the "nyholm/psr7" package is not installed. Try running "composer require nyholm/psr7".', __METHOD__));
}

/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
Expand Down
3 changes: 3 additions & 0 deletions Response/AmpResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ public function getInfo(string $type = null)
return null !== $type ? $this->info[$type] ?? null : $this->info;
}

/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
Expand Down
3 changes: 3 additions & 0 deletions Response/CommonResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ public function toStream(bool $throw = true)
return $stream;
}

/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
Expand Down
3 changes: 3 additions & 0 deletions Response/TraceableResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public function __construct(HttpClientInterface $client, ResponseInterface $resp
$this->event = $event;
}

/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
Expand Down

0 comments on commit 67c177d

Please sign in to comment.