From 6c0bcd90ede37cffa1c354a1c61e3fffcd94abaf Mon Sep 17 00:00:00 2001 From: vjkcxl <349-vjkcxl@users.noreply.gitlab.tt-rss.org> Date: Mon, 1 Sep 2025 14:32:23 -0500 Subject: Try to add types --- plugins/af_comics/filters/af_comics_comicpress.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/af_comics/filters/af_comics_comicpress.php b/plugins/af_comics/filters/af_comics_comicpress.php index 54ad515d7..3b61612fb 100755 --- a/plugins/af_comics/filters/af_comics_comicpress.php +++ b/plugins/af_comics/filters/af_comics_comicpress.php @@ -48,7 +48,7 @@ class Af_Comics_ComicPress extends Af_ComicFilter { return false; } - private function cleanup($xpath, $content_node) { + private function cleanup(DOMXPath $xpath, DOMNode $content_node): void { $toUpdates = $xpath->query('//img[@data-src]', $content_node); $this->move_all_attributes($toUpdates, 'data-src', 'src'); @@ -64,7 +64,7 @@ class Af_Comics_ComicPress extends Af_ComicFilter { } } - private function move_all_attributes($toUpdates, $srcName, $dstName) { + private function move_all_attributes(DOMNodeList $toUpdates, string $srcName, string $dstName): void { foreach ($toUpdates as $toUpdate) { $attributeValue = $toUpdate->getAttribute($srcName); $toUpdate->setAttribute($dstName, $attributeValue); -- cgit v1.2.3-54-g00ecf