aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-04-17 16:24:35 +0200
committerGravatar GitHub <noreply@github.com> 2023-04-17 16:24:35 +0200
commit62496339b6a43fcbb8267fb0f14ac2b165bf5826 (patch)
treea7ed5fe51af404af6939814e401c002252589f5c /app/Models/Feed.php
parent5185bcef13862ee86298cd38b83da145d03055b5 (diff)
More consistent use of iterable type (#5308)
For `yield`
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index ecf875723..0d7c35739 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -478,10 +478,8 @@ class FreshRSS_Feed extends Minz_Model {
return $guids;
}
- /**
- * @return iterable<FreshRSS_Entry>
- */
- public function loadEntries(SimplePie $simplePie) {
+ /** @return iterable<FreshRSS_Entry> */
+ public function loadEntries(SimplePie $simplePie): iterable {
$hasBadGuids = $this->attributes('hasBadGuids');
$items = $simplePie->get_items();