Fix thumbnail PHP type hint (#4216)

* Fix thumbnail PHP type hint
 https://github.com/FreshRSS/FreshRSS/issues/4215

* Blank
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2022-02-09 23:37:13 +01:00
1 parent 133e0d61db
commit 4b9d66faca
1 file changed
+5 -2
+5 -2
View File
@@ -125,13 +125,16 @@ class FreshRSS_Entry extends Minz_Model {
}
}
public function thumbnail(): string {
/**
* @return array<string,string>|null
*/
public function thumbnail() {
foreach ($this->enclosures(true) as $enclosure) {
if (!empty($enclosure['url']) && empty($enclosure['type'])) {
return $enclosure;
}
}
return '';
return null;
}
public function link(): string {