Skip to content

Commit

Permalink
Exceptions need to be instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 21, 2014
1 parent f7597d4 commit e57de08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/Http/Response.php
Expand Up @@ -143,7 +143,7 @@ public function __construct($headers = [], $body = '') {
*/
protected function _decodeGzipBody($body) {
if (!function_exists('gzinflate')) {
throw \RuntimeException('Cannot decompress gzip response body without gzipinflate()');
throw new \RuntimeException('Cannot decompress gzip response body without gzipinflate()');
}
$offset = 0;
// Look for gzip 'signature'
Expand Down

0 comments on commit e57de08

Please sign in to comment.