Skip to content

Commit

Permalink
parseFeed will always return a feed or throw an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaishiyoku committed May 3, 2023
1 parent 2ba9e57 commit 5d7c6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HeraRssCrawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function setFeedDiscoverers(Collection $feedDiscoverers): void
* @throws ConnectException
* @throws Exception
*/
public function parseFeed(string $url): ?Feed
public function parseFeed(string $url): Feed
{
return $this->withRetries(function () use ($url) {
$content = $this->httpClient->get($url)->getBody()->getContents();
Expand Down

0 comments on commit 5d7c6c8

Please sign in to comment.