diff options
| author | 2023-04-17 16:24:35 +0200 | |
|---|---|---|
| committer | 2023-04-17 16:24:35 +0200 | |
| commit | 62496339b6a43fcbb8267fb0f14ac2b165bf5826 (patch) | |
| tree | a7ed5fe51af404af6939814e401c002252589f5c /app/Models/Entry.php | |
| parent | 5185bcef13862ee86298cd38b83da145d03055b5 (diff) | |
More consistent use of iterable type (#5308)
For `yield`
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 2 |
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 |
