mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:15:56 +00:00
Minor fix to DOMNodeList#item() potential type (null vs false)
This commit is contained in:
@@ -602,7 +602,7 @@ class Article extends Handler_Protected {
|
||||
} else if ($e->nodeName == "video") {
|
||||
$article_image = $e->getAttribute("poster");
|
||||
|
||||
/** @var DOMElement|false $src */
|
||||
/** @var DOMElement|null $src */
|
||||
$src = $tmpxpath->query("//source[@src]", $e)->item(0);
|
||||
|
||||
if ($src) {
|
||||
|
||||
@@ -69,7 +69,7 @@ class FeedParser {
|
||||
|
||||
if (!empty($root_list) && $root_list->length > 0) {
|
||||
|
||||
/** @var DOMElement|false $root */
|
||||
/** @var DOMElement|null $root */
|
||||
$root = $root_list->item(0);
|
||||
|
||||
if ($root) {
|
||||
|
||||
Reference in New Issue
Block a user