fix phpstan warnings in classes/sanitizer.php

This commit is contained in:
Andrew Dolgov 2021-11-13 17:52:03 +03:00
parent a7983d475e
commit 8a83f061bf
1 changed files with 1 additions and 1 deletions

View File

@ -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))