Category : intelephense

I’m new to visual studio code and intelephense. I’m working with WordPress and using a class called WP_CLI that’s system installed. So, if I’m not wrong, class WP_CLI is not in my path so I get Undefined type ‘WP_CLI’.intelephense(1009) The ideal solution for me would be to be able to tell inteliphense that WP_CLI is ..

Read more

I had to uninstall and reinstall a few plugins today and one of them was Intelephense. Now that I’m using the newer version I am no longer able to automatically jump to my functions, I am instead shown two options: "function foo" and "public function foo" and need to click on either one (they are ..

Read more

In config/app.php ‘aliases’ => [ ‘Route’ => IlluminateSupportFacadesRoute::class, ], when I am using Route in routes/web.php like Route::get(‘/’, ‘[email protected]’); I installed php intelephense extension in my vs code. So that it is showing error like Does anyone have any idea how to fix this issue? (Functionality is working fine but it is showing like the ..

Read more

Intelephense is working fantastically for VSCode. However, occasionally I hit an issue where the definitions provided by a library aren’t correct. Is there a way for my project to provide alternative type definitions to Intelephense for particular methods or classes within the vendor library? I don’t mind if I have to manually type out a ..

Read more

I’ve used VS Code with PHP intelephense before but with this fresh installation on a new computer I’m stuck and no idea what I’m doing wrong!! I’ve installed PHP Intelephense in VS Code Disabled PHP Language Features. Left PHP Language Basics enabled My settings.json { "typescript.suggest.paths": false, "files.associations": { "*.module": "php" }, "files.autoSave": "afterDelay", "editor.minimap.enabled": ..

Read more

I use vscode as my editor and php intelephense as my php formatter. It works well, but when I want to use relative file path For example : <link rel="stylesheet" href="../css/style.css"> but my php intelephense always suggest me document root, so i follow that suggestion <link rel="stylesheet" href="sites/css/index.css"> Here is my folder hierarchy -htdocs/ -anotherSites/ ..

Read more