mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
Fix thumbnail PHP type hint (#4216)
* Fix thumbnail PHP type hint https://github.com/FreshRSS/FreshRSS/issues/4215 * Blank
This commit is contained in:
1 parent
133e0d61db
commit
4b9d66faca
1 file changed
+5
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user