Skip to content

Can't get parameter information when calling class methods or global functions #373

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

Closed
fyndor opened this issue May 5, 2017 · 1 comment

Comments

@fyndor
Copy link

fyndor commented May 5, 2017

If I try and define the parameters of a class method or a function and write a description of them I do not get information about which parameter I am on or what its description is. I try and hit CTRL+SHIFT+SPACE when my cursor is inside the function and nothing appears. Am I doing something wrong, is this not implemented, or is it a bug? Below is an example of what I am doing. I expect when my cursor is inside method calls in the last two statements to be able to see the parameter information about the parameter my cursor is on.

<?php
    /**
     * Does stuff
     *
     * @param string $stuff Does stuff with this parameter
     */
    function Stuff(string $stuff) {

    }
    /**
     * MyDbClient - A class for connecting to a database  
     */
    class MyDbClient
    {
        /**
         * Executes a sql statement
         *
         * @param string $sql SQL statement to execute
         */
        function query(string $sql) {
            //Code goes here
        }
    }    

    $test = new MyDbClient();
    $test->query("select * from mytable");
    Stuff();
?>
@jens1o
Copy link
Contributor

jens1o commented May 5, 2017

This is currently not supported. See #18

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

3 participants