diff options
author | Devlin Junker <devlin.junker@gmail.com> | 2023-10-22 13:57:14 -0700 |
---|---|---|
committer | Devlin Junker <devlin.junker@gmail.com> | 2023-10-22 14:03:52 -0700 |
commit | 3e35d781cf712efa1473b4495a48299326b52c0c (patch) | |
tree | 9643b2e75ee3139bb6c5abb102d6f69937a5169e /lib/Fetcher/Client/FeedIoClient.php | |
parent | 94f04d4a20cbbadb7d8ad835bc7ae3dc1c4256fd (diff) | |
parent | d423ca520ca9c61233c33717d604e3183f0f486c (diff) |
Merge remote-tracking branch 'nextcloud/master' into master-merge
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to 'lib/Fetcher/Client/FeedIoClient.php')
-rw-r--r-- | lib/Fetcher/Client/FeedIoClient.php | 8 |
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()); } } } |