Skip to content

Commit

Permalink
[4.4] Add missing @return annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 23, 2021
1 parent 7eae617 commit ade6979
Show file tree
Hide file tree
Showing 3 changed files with 9 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 @@ -115,6 +115,9 @@ public function didThrow(): 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 @@ -362,6 +362,9 @@ public function 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

0 comments on commit ade6979

Please sign in to comment.