bmewburn / vscode-intelephense

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

'Tests\Test' does not implement method 'createApplication' P1037 in `1.10.4` #2900

Closed flexchar closed 3 months ago

flexchar commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

A parent class defines an interface. A lesser parent class implements the interface. A child class receives warning about about missing method.

This is native to Laravel.

The problem goes away after downgrading.

To Reproduce A code snippet (NOT a screenshot of a code snippet) or steps to reproduce the issue

1. composer create-project laravel/laravel project_name
2. php artisan make:test TestName
3. code tests/Feature/TestName.php

Expected behavior Should display no error.

Platform and version OS and Intelephense version. Darwin Kernel Version 23.5.0 1.10.4

flexchar commented 3 months ago

Okay, it may have been a super weird bug that intelephense never reindexed the project properly - meaning after this downgrade and upgrade the issue is gone. I wish I tried that before opening the ticket :D