diff options
author | Andrew Dolgov <[email protected]> | 2021-11-13 17:52:03 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-13 17:52:03 +0300 |
commit | 8a83f061bfa907af167090133738c1dc065dc69d (patch) | |
tree | 5dcfb116ebce9dd2ee39712a02e6550b3125bde8 /classes | |
parent | a7983d475efb56711382bd320bb0be503dba0c93 (diff) |
fix phpstan warnings in classes/sanitizer.php
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sanitizer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/sanitizer.php b/classes/sanitizer.php index 2770aece2..e0db811c6 100644 --- a/classes/sanitizer.php +++ b/classes/sanitizer.php @@ -44,7 +44,7 @@ class Sanitizer { return $doc; } - public static function iframe_whitelisted(DOMNode $entry): bool { + public static function iframe_whitelisted(DOMElement $entry): bool { $src = parse_url($entry->getAttribute("src"), PHP_URL_HOST); if (!empty($src)) |