Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

devsaurabh's avatar

devsaurabh wrote a reply+100 XP

1w ago

VS Code, Laravel and increased errors/warnings from Intelephense

Okay so changing this in settings helped:

"intelephense.diagnostics.argumentCount": "declared"

For me the default value as on

Edit: reference https://github.com/bmewburn/vscode-intelephense/blob/master/CHANGELOG.md#changed

devsaurabh's avatar

devsaurabh wrote a reply+100 XP

2w ago

VS Code, Laravel and increased errors/warnings from Intelephense

did you find any solution? The AI generated. response didn't help me

devsaurabh's avatar

devsaurabh liked a comment+100 XP

2w ago

VS Code, Laravel and increased errors/warnings from Intelephense

Has anyone else noticed a sudden increase in warnings in the Problems tab of VS Code from the Intelephense Extension? Does anyone know if they've reduced the feature set for the freemium version and maybe that's why it's doing it?

It happened around last Thursday (12th Feb) where the most basic things are being falsely flagged up.

I also noticed that PHP Namespace Resolver had some updates recently which coincidently had an update on the 12th (first time in 3 years) but as a test I downgraded back to the the version from 3 years ago and the warnings below still appear.

Example: Working on a migration file I get the following errors

Undefined type 'Illuminate\Database\Migrations\Migration'. Undefined type 'Illuminate\Support\Facades\Schema'. Undefined type 'Illuminate\Database\Schema\Blueprint'. Undefined type 'Illuminate\Support\Facades\Schema'.

Or for a Model: Undefined type 'Illuminate\Database\Eloquent\Model'. Undefined type 'Illuminate\Database\Eloquent\Factories\HasFactory'.