Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find function / method doc #9

Open
TonyGravagno opened this issue Sep 25, 2018 · 0 comments
Open

Unable to find function / method doc #9

TonyGravagno opened this issue Sep 25, 2018 · 0 comments

Comments

@TonyGravagno
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant