docphp icon indicating copy to clipboard operation
docphp copied to clipboard

Unable to find function / method doc

Open TonyGravagno opened this issue 7 years ago • 0 comments

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.

TonyGravagno avatar Sep 25 '18 16:09 TonyGravagno