mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
PHPStan level 9 for ./p/ and lib_rss.php (#5049)
And app/FreshRSS.php Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112
This commit is contained in:
1 parent
2303b29e68
commit
4f316b2ed3
12 files changed
+1292
-1196
No files matched your search
@@ -17,10 +17,14 @@ class FreshRSS_Entry extends Minz_Model {
|
||||
*/
|
||||
private $guid;
|
||||
|
||||
/** @var string */
|
||||
private $title;
|
||||
private $authors;
|
||||
/** @var string */
|
||||
private $content;
|
||||
/** @var string */
|
||||
private $link;
|
||||
/** @var int */
|
||||
private $date;
|
||||
private $date_added = 0; //In microseconds
|
||||
/**
|
||||
@@ -298,6 +302,7 @@ HTML;
|
||||
public function link(): string {
|
||||
return $this->link;
|
||||
}
|
||||
/** @return string|int */
|
||||
public function date(bool $raw = false) {
|
||||
if ($raw) {
|
||||
return $this->date;
|
||||
|
||||
Reference in new issue
Block a user