more type hints

This commit is contained in:
Andrew Dolgov
2025-04-14 15:31:06 +03:00
parent 945690fffc
commit 8cf3059951
3 changed files with 5 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ class FeedItem_RSS extends FeedItem_Common {
function get_link(): string {
$links = $this->xpath->query("atom:link", $this->elem);
/** @var DOMElement $link */
foreach ($links as $link) {
if ($link->hasAttribute("href") &&
(!$link->hasAttribute("rel")