summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher/Client/FeedIoClient.php
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2023-05-18 07:52:28 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2023-08-09 10:58:45 +0200
commitca6cedeb28ec3299263df2e07dfe15744d166646 (patch)
treecec1aac1b154e58731f4754187e551d63a717ec1 /lib/Fetcher/Client/FeedIoClient.php
parentd1dc011abe51878e93ddecb1207914ea93692855 (diff)
Upgrade feed-io to v5.1.3
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'lib/Fetcher/Client/FeedIoClient.php')
-rw-r--r--lib/Fetcher/Client/FeedIoClient.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Fetcher/Client/FeedIoClient.php b/lib/Fetcher/Client/FeedIoClient.php
index ac1f62a1f..fe57c5889 100644
--- a/lib/Fetcher/Client/FeedIoClient.php
+++ b/lib/Fetcher/Client/FeedIoClient.php
@@ -38,14 +38,14 @@ class FeedIoClient implements ClientInterface
}
/**
- * @param string $url
- * @param DateTime $modifiedSince
+ * @param string $url
+ * @param DateTime|null $modifiedSince
*
* @return ResponseInterface
* @throws ServerErrorException|GuzzleException
* @throws NotFoundException
*/
- public function getResponse(string $url, DateTime $modifiedSince) : ResponseInterface
+ public function getResponse(string $url, ?DateTime $modifiedSince = null) : ResponseInterface
{
$modifiedSince->setTimezone(new \DateTimeZone('GMT'));
try {
@@ -65,7 +65,7 @@ class FeedIoClient implements ClientInterface
case 404:
throw new NotFoundException($e->getMessage());
default:
- throw new ServerErrorException($e->getMessage());
+ throw new ServerErrorException($e->getResponse());
}
}
}