Remove PHPStan excludes related to DOMElement/DOMNode.

This commit is contained in:
supahgreg 2025-10-17 02:40:14 +00:00
parent bd1e066402
commit 3e6a6654fa
No known key found for this signature in database
2 changed files with 1 additions and 6 deletions

View File

@ -7,11 +7,6 @@ parameters:
- message: '#"(autoload|colors|config|errorhandler|login_form|sessions)\.php"#'
identifier: requireOnce.fileNotFound
# undetected as DOMElement
- '#Call to an undefined method DOMNode::#'
- '#Access to an undefined property DOMNode::#'
- '#expects DOMElement, DOMNode given#'
- message: '##'
paths:
- lib/*

View File

@ -64,7 +64,7 @@ class Af_Comics_ComicPress extends Af_ComicFilter {
}
/**
* @param DOMNodeList<DOMNode> $toUpdates
* @param DOMNodeList<DOMElement> $toUpdates
*/
private function move_all_attributes(DOMNodeList $toUpdates, string $srcName, string $dstName): void {
foreach ($toUpdates as $toUpdate) {