From d6e9bc8b01a7d58630772f6dc9938e88a28be706 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 18 Oct 2022 12:58:16 +0200 Subject: [PATCH] ContentLoader: Fix updating spouts on PHP < 7.2 The constants were only introduced in 7.2.0. https://www.php.net/manual/en/class.datetimeinterface.php#datetimeinterface.changelog --- src/helpers/ContentLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ContentLoader.php b/src/helpers/ContentLoader.php index 21d3af9b10..552ae21d2c 100644 --- a/src/helpers/ContentLoader.php +++ b/src/helpers/ContentLoader.php @@ -167,7 +167,7 @@ public function fetch($source) { $itemDate = new \DateTimeImmutable(); } if ($itemDate < $minDate) { - $this->logger->debug('item "' . $item->getTitle() . '" (' . $itemDate->format(\DateTimeInterface::ATOM) . ') older than ' . $this->configuration->itemsLifetime . ' days'); + $this->logger->debug('item "' . $item->getTitle() . '" (' . $itemDate->format(\DateTime::ATOM) . ') older than ' . $this->configuration->itemsLifetime . ' days'); continue; }