Skip to content

Property of DOMNamedNodeMap not recognized #3492

@schlessera

Description

@schlessera

Bug report

Trying to access DOMNamedNodeMap::$length throws an error:

Access to an undefined property DOMNamedNodeMap::$length.

However, according to the docs at https://www.php.net/manual/en/class.domnamednodemap.php, $length should be a public read-only property.

Code snippet that reproduces the problem

https://phpstan.org/r/f9ef8226-f1e0-41a1-94e9-995ac9841bd6

Expected output

For the above-linked case, no error should be produced.

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