Skip to content

Commit

Permalink
Type-hint response object in error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris White committed Mar 25, 2016
1 parent 526ef67 commit d4357fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use ChrisWhite\B2\Exceptions\NotFoundException;
use ChrisWhite\B2\Exceptions\FileNotPresentException;
use ChrisWhite\B2\Exceptions\BucketNotEmptyException;
use GuzzleHttp\Psr7\Response;

class ErrorHandler
{
Expand All @@ -21,7 +22,7 @@ class ErrorHandler
'cannot_delete_non_empty_bucket' => BucketNotEmptyException::class
];

public static function handleErrorResponse($response)
public static function handleErrorResponse(Response $response)
{
$responseJson = json_decode($response->getBody(), true);

Expand Down

0 comments on commit d4357fa

Please sign in to comment.