diff options
author | wn_ <[email protected]> | 2021-11-15 12:24:38 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2021-11-15 12:24:38 +0000 |
commit | 109b702ed0cd31a0dc8466b8127882d263705d8d (patch) | |
tree | 615ef350b657c0fbb5b4c57a7769bdaad48f7bfa /plugins/af_comics | |
parent | 85b974af323a5819c888439bad2bf46ccaaaa4cd (diff) |
Minor fix to DOMNodeList#item() potential type (null vs false)
Diffstat (limited to 'plugins/af_comics')
-rwxr-xr-x | plugins/af_comics/filters/af_comics_comicpress.php | 2 | ||||
-rw-r--r-- | plugins/af_comics/filters/af_comics_dilbert.php | 2 | ||||
-rw-r--r-- | plugins/af_comics/filters/af_comics_gocomics.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/af_comics/filters/af_comics_comicpress.php b/plugins/af_comics/filters/af_comics_comicpress.php index 93bfde7e7..89837d074 100755 --- a/plugins/af_comics/filters/af_comics_comicpress.php +++ b/plugins/af_comics/filters/af_comics_comicpress.php @@ -32,7 +32,7 @@ class Af_Comics_ComicPress extends Af_ComicFilter { return true; } - /** @var DOMElement|false $webtoon_link (buni specific) */ + /** @var DOMElement|null $webtoon_link (buni specific) */ $webtoon_link = $xpath->query("//a[contains(@href,'www.webtoons.com')]")->item(0); if ($webtoon_link) { diff --git a/plugins/af_comics/filters/af_comics_dilbert.php b/plugins/af_comics/filters/af_comics_dilbert.php index 80a8a0221..a1c59b94c 100644 --- a/plugins/af_comics/filters/af_comics_dilbert.php +++ b/plugins/af_comics/filters/af_comics_dilbert.php @@ -22,7 +22,7 @@ class Af_Comics_Dilbert extends Af_ComicFilter { if ($res && $doc->loadHTML($res)) { $xpath = new DOMXPath($doc); - /** @var DOMElement|false $basenode (image container) */ + /** @var DOMElement|null $basenode (image container) */ $basenode = $xpath->query('(//div[@class="img-comic-container"]/a[@class="img-comic-link"])')->item(0); // Get the comic title diff --git a/plugins/af_comics/filters/af_comics_gocomics.php b/plugins/af_comics/filters/af_comics_gocomics.php index f474312ae..732f7d0b8 100644 --- a/plugins/af_comics/filters/af_comics_gocomics.php +++ b/plugins/af_comics/filters/af_comics_gocomics.php @@ -50,7 +50,7 @@ class Af_Comics_Gocomics extends Af_ComicFilter { if (@$doc->loadHTML($body)) { $xpath = new DOMXPath($doc); - /** @var DOMElement|false $node */ + /** @var DOMElement|null $node */ $node = $xpath->query('//picture[contains(@class, "item-comic-image")]/img')->item(0); if ($node) { |