aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.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/Entry.php
parent5185bcef13862ee86298cd38b83da145d03055b5 (diff)
More consistent use of iterable type (#5308)
For `yield`
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index 20f17d1c7..b5a742535 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -221,7 +221,7 @@ HTML;
}
/** @return iterable<array{'url':string,'type'?:string,'medium'?:string,'length'?:int,'title'?:string,'description'?:string,'credit'?:string,'height'?:int,'width'?:int,'thumbnails'?:array<string>}> */
- public function enclosures(bool $searchBodyImages = false) {
+ public function enclosures(bool $searchBodyImages = false): iterable {
$attributeEnclosures = $this->attributes('enclosures');
if (is_array($attributeEnclosures)) {
// FreshRSS 1.20.1+: The enclosures are saved as attributes