Skip to content

Commit

Permalink
Exceptions taking integer as an argument fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hubipe committed May 8, 2020
1 parent b9daa88 commit 98c91e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Parser/Autocomplete/AutocompleteParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function parse(IRequest $request, int $statusCode, array $headers, string
} catch (JsonException $e) {
throw new ParserException(
sprintf('Response is not in valid format: %s', $e->getMessage()),
NULL,
0,
$e
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Parser/CzAutocomplete/CzAutocompleteParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function parse(IRequest $request, int $statusCode, array $headers, string
} catch (JsonException $e) {
throw new ParserException(
sprintf('Response is not in valid format: %s', $e->getMessage()),
NULL,
0,
$e
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Parser/Detail/DetailParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function parse(IRequest $request, int $statusCode, array $headers, string
} catch (JsonException $e) {
throw new ParserException(
sprintf('Response is not in valid format: %s', $e->getMessage()),
NULL,
0,
$e
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Request/GuzzleRequestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function call(IRequest $request): IResponse
$options
);
} catch (\GuzzleHttp\Exception\RequestException $e) {
throw new RequestException('FinStat request error: ' . $e->getMessage(), NULL, $e);
throw new RequestException('FinStat request error: ' . $e->getMessage(), 0, $e);
}

$statusCode = $response->getStatusCode();
Expand Down

0 comments on commit 98c91e4

Please sign in to comment.