Skip to content

Commit

Permalink
Fixed bug in Http\Event\HttpErrorListener class. Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arturdoruch committed Sep 25, 2015
1 parent 667f6ef commit 16d61e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Event/HttpErrorListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function onComplete(CompleteEvent $event)

$code = (string) $event->getResponse()->getStatusCode();
// Throw an exception for an unsuccessful response
if ($code[0] >= 4 || $code[0] === 0) {
if ($code[0] >= 4 || $code[0] == 0) {
throw RequestException::create($event->getResponse());
}
}
Expand Down
2 changes: 1 addition & 1 deletion Message/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Response extends MessageHeader implements \JsonSerializable
/**
* @var array
*/
private $redirects;
private $redirects = array();

/**
* @var array
Expand Down
2 changes: 1 addition & 1 deletion Response/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use ArturDoruch\Http\Message\Response as BaseResponse;

/**
* deprecated Will be removed in version 4. Use instead ArturDoruch\Http\Message\Response.
* @deprecated Will be removed in version 4. Use instead ArturDoruch\Http\Message\Response.
*/
class Response extends BaseResponse
{
Expand Down

0 comments on commit 16d61e7

Please sign in to comment.