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.
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
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
In xampp and php 8.0.19 on win 11 the solution
cd ~/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/
composer update
typed in vscode solves the problem.