bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.63k stars 94 forks source link

No suggestions for $response in Test methods in Laravel 8 #1965

Open weidmaster opened 3 years ago

weidmaster commented 3 years ago

Describe the bug When developing using Laravel 8 and creating tests, there is no suggestions for the $response variable, while in Laravel 6 it works as intended.

To Reproduce Create or edit a test method in a test class and save the response from an HTTP request and try to assert something. For example:

public function testCannotAccessDashboardWithoutLogin()
    {
        $response = $this->get('/main/admin');

        $response->assertRedirect('/main/login');
    }

Expected behavior It should popup the suggestions for possible asserts, as it identifies correctly the $response variable

Screenshots Working in L6: it_works_in_laravel_6

Currently fail in L8: it_identifies_the_response_variable

it_does_not_show_suggestions_for_response

Platform and version OS: Kubuntu 20.04 Intellephense: 1.7.1

robsontenorio commented 1 year ago

@weidmaster I am have same problem for L9.

Have you fond any solution?