Skip to content

Unable to find function / method doc #9

@TonyGravagno

Description

@TonyGravagno

In the example below, ctrl-alt-d on the text SimpleXMLElement does show docs for that class. But ctrl-alt-d on getName() does not show that method of the class.

foreach ($headers->children() as (SimpleXMLElement)$node) {
        $nodeName = $node->getName();

(not sure casting is valid in foreach, so....)

foreach ($headers->children() as ($node) {
        $senode = (SimpleXMLElement)$node;
        $nodeName = $senode->getName();

It does show the doc for the count function:

$myarray->count()

I understand the complexity of deriving the type of $node to know the base class for the method. In this case I tried to help it to recognize the class. Is this a feature that might be implemented? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions