devsaurabh wrote a reply+100 XP
1w ago
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 wrote a reply+100 XP
2w ago
did you find any solution? The AI generated. response didn't help me
devsaurabh liked a comment+100 XP
2w ago
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'.