Skip to content

DOMElement::removeAttributeNode error on PHP 8.0 but fine on PHP 7.1 - 7.4 #4268

@eclipxe13

Description

@eclipxe13

PHPStan 0.12 on PHP 8.0 report the error:

Parameter #1 $qualifiedName of method DOMElement::removeAttributeNode() expects string, DOMAttr given.

On PHP 7.1 - 7.4 does not report any error.

Check: https://phpstan.org/r/8d846859-ffc0-48a8-bf6b-b58bcee1baa1

Signature DOMElement::removeAttributeNode(DOMAttr $oldnode): bool is well defined on https://github.com/phpstan/phpstan-src/blob/19bf582aa3c0e0809446a17399d17d17ab40297c/resources/functionMap.php#L1956 since 2018-02-18 commit phpstan/phpstan-src@f486280.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions