I have this error in my vscode after I upgraded to PHP8.
I tried to increase my memory_limit to 4GB
or 8GB
as this link described.
also, I using the v2.3.14
(last version) of the PHP IntelliSense
extension.
I have this error in my vscode after I upgraded to PHP8.
I tried to increase my memory_limit to 4GB
or 8GB
as this link described.
also, I using the v2.3.14
(last version) of the PHP IntelliSense
extension.
Since my initial answer is from 2021 and in the meanwhile the extension is not maintained anymore, I recommend to follow the answer of air-dex below.
This fixed it for me on PHP 8.0.3:
cd ~/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/
composer update
https://github.com/felixfbecker/php-language-server/issues/779
Looks like Felix Becker's Extension is now unmaintained. I fixed the issue by replacing his extension with Damjan Cvetko's PHP IntelliSense, which is a maintained fork of this one: https://marketplace.visualstudio.com/items?itemName=zobo.php-intellisense
I also had same issue on WSL2 Ubuntu 20.04.2 LTS trying to use PHP 8.0.2, although my vscode server path is slightly different. Ran the update, reopened vscode and everything is working like it should.
cd ~/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/
composer update
The problem for me is that I had both extensions installed. Uninstalling felix's solved the issue.
© 2022 - 2024 — McMap. All rights reserved.
Help / Toggle Developer Tools, tab Console
– Cincinnati