Hello,
I use VS Code with the PHP Intelephense extension, and I’m facing an issue with it.
Sometimes I call methods that I know do exist, but Intelephense warns me that the method does not exist.
Also, when I try to "Go to Definition" on some classes, it takes me to a generated file under vendor/_ide_helper/, which contains the same class but with incomplete definitions, and sometimes it takes me to this file:
/vendor/inertiajs/inertia-laravel/_ide_helpers.php.
Example: I’m inside a FormRequest class and trying to call $this->method().
This method exists because FormRequest extends Illuminate\Foundation\Http\FormRequest, which extends Illuminate\Http\Request, which implements the method() method.
However, Intelephense still says the method does not exist, and "Go to Definition" takes me to an incomplete stub.
Has anyone faced this issue? Is there a way to fix it?