Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Applied fixes from StyleCI #18

Merged
merged 1 commit into from
Dec 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Guzzle6Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(PromiseInterface $promise, RequestInterface $request
} elseif ($reason instanceof GuzzleExceptions\GuzzleException) {
$this->state = self::REJECTED;
$this->exception = $this->handleException($reason, $request);
} elseif($reason instanceof \Exception) {
} elseif ($reason instanceof \Exception) {
throw new \RuntimeException('Invalid exception returned from Guzzle6', 0, $reason);
} else {
throw new \UnexpectedValueException('Reason returned from Guzzle6 must be an Exception', 0, $reason);
Expand Down