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

Intelephense suggestion issue #122

Open
ekr3peeK opened this issue Jun 2, 2021 · 0 comments
Open

Intelephense suggestion issue #122

ekr3peeK opened this issue Jun 2, 2021 · 0 comments

Comments

@ekr3peeK
Copy link

ekr3peeK commented Jun 2, 2021

Intelephense for VS Code, gets only partial suggestions when you are trying to use the following syntax:

$scheduler->php(...)
                ->everyMinute(...)
                ->when(...)

According to Intelephense the when function does not exist, because the everyMinute function which is in the trait is being documented as returning itself, and not the actual class where the trait was used:

     * @return self
     */
    public function everyMinute($minute = null)

This could be fixed if updating the @return documentation of the traits function to static, instead of self.

As I am using VS Code, I could not test this out, if the intelisens used by other IDEs behave the same on this issue, or not.

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

No branches or pull requests

2 participants