Questions tagged [intelephense]

This tag should be used to discuss the PHP static code analysis and language tools provided by the Intelephense vscode plugin, including questions related to improving its effectiveness or correcting issues related to its installation, configuration, or potential bugs and shortcomings.

Intelephense is a high performance PHP language server packed full of essential features for productive PHP development. It provides PHP code intelligence for the Visual Studio Code editor.

78 questions
0
votes
0 answers

Is there a settings option for a fully expanded settings menu in VS Code?

When I open this settings menu, and others of this type, there are always some menu items hidden and I have to scroll. Is there a setting option to have these kinds of menus fully expanded without the need to scroll? macOS Big Sur Thanks
Bryan
  • 657
  • 3
  • 10
0
votes
1 answer

undefined method 'createtoken'.intelephense(1013) laravel 8 API

I have added use Laravel\Passport\HasApiTokens; and use HasApiTokens in user model. Still intelephense is unable to recognise it in vs code. Also in postman when i run it it showns me error "message": "Personal access client not found. Please…
becky
  • 7
  • 4
0
votes
1 answer

VsCode composer psr-4 autoload of external libraries does not perform code completion

I have a self-made shared library that I am including in my Laravel project. This is how the autoload part in my composer.json looks like: "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\":…
0
votes
1 answer

Expected type 'object'. Found 'void'.intelephense(1006)

Laravel v 9.11 Livewire v 2.5 vscode v 1.67.2 intelephense v 1.8.2 In laravel project i have a livewire component with a search function model Department:
John Deck
  • 787
  • 1
  • 12
  • 27
0
votes
0 answers

Intelephense bugs in VSCode

Intelepense in VScode tells me that — Undefined variable '$name'.intelephense(1008). Same with $age. And in the inherited class, there is an error with the parent:: construct - Cannot use 'parent' in a class with no parent.intelephense(1035). I…
0
votes
1 answer

PHP : VS code + >Intelephense detect an error on references passed in foreach (and in functions)

VS Code detect errors on my php code when I try to use a reference in a foreach. This should be possible refering to PHP doc : https://www.php.net/manual/en/control-structures.foreach.php $arr = array(1, 2, 3, 4); foreach ($arr as &$value) { …
Pierre Granger
  • 1,993
  • 2
  • 15
  • 21
0
votes
1 answer

Undefined method 'notify'. intelephense(1013)

I have this peace of code: auth()->user()->notify(new TestNotification($oneParam, $twoParam)); My auth()->user() return the user logged in like: App\Models\User\User {#1094 ▼ +timestamps: false #fillable: array:8 [▶] #hidden: array:1 [▶] …
francisco
  • 1,387
  • 2
  • 12
  • 23
0
votes
1 answer

Getting error that actually not an error in vscode while using intelephense

Getting unexpected error (Expected 1 arguments. Found 0) in vscode while using intelephense extension. When I uninstall the intelephense extesion from vscode at that time this error not showing but i dont want to uninstall the extension. how can i…
devang_281999
  • 55
  • 1
  • 8
0
votes
1 answer

PHP Intelephense not showing 'Import' option

I just instlled PHP Intelephense extension in Visual Studio code. When I hover over a class and right click, it will not show import in the option.
Gist
  • 11
  • 5
0
votes
1 answer

Intelephense 1.4 and higher don't show hover menus or goto function declaration

I can't upgrade Intelephense higher than 1.3 because from 1.4 hover menus when I hover a function are gone, and also clicking a function won't take me to the declaration anymore. As You can see, in version 1.3 when I hover a function I can see…
yoshi
  • 59
  • 5
0
votes
1 answer

Abstract factory class returning an interface type, method not found?

I am attempting to use the abstract factory pattern. I've created a class, FactoryProducer, that creates a class-specific factory based on a string passed into one of the two class methods. The issue I'm having is that I've extended one of the…
0
votes
1 answer

Intelephense stub won't load in CakePHP 2

I have some helper functions that I use everywhere in a CakePHP 2 application. They are underlined with red and reported as 'undefined functions' in the console. I know I can just ignore the errors, but I would like to have it working properly going…
Vael Victus
  • 3,966
  • 7
  • 34
  • 55
0
votes
1 answer

VS Code + PHP Intelephense + Remote-SSH + Symfony 3 : undefined method error

I'm discovering VS Code, I am a complete newbie with this code editor, before I used Atom but I want to use VS Code which looks very cool! I have a Symfony 3 project on a Linux server and I want to directly modify its files because it's a dev…
Eve
  • 776
  • 2
  • 11
  • 32
0
votes
1 answer

Visual Studio Code PHP Intelephense auto formats Null Coalescing Operator

I'm using PHP Intelephense(free) extension in vscode and we use CodeIgniter 3 in our project and it works well with models and controller, but in my pages/view where javascript,css,jquery is written. Null Coalescing Operator happens to be auto…
GhoSt
  • 321
  • 2
  • 12
0
votes
1 answer

Is there a configuration flag for VS Code PHP Intelephense extension to turn off the parameter hinting?

I'm noticing some additional parameter hinting when using VS Code with the Intelephense extension. I see the value in this, but I'm also finding that it adds a bit too much visual noise for me during development. Is there a way to toggle this option…
Richard
  • 101
  • 4