Resolve VS Code "The PHP Language Server crashed 5 times in the last 3 minutes" notification

Posted on 2021/07/13

My VS Code keep showing a notification that the PHP Language Server has crashed several times in the last 3 minutes after loading a PHP project.

PHP Version on my system:

PHP 8.0.7 (cli) (built: Jun  2 2021 04:04:16) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.7, Copyright (c) Zend Technologies

A solution is to update the packages the plugin uses to a newer version using Composer:

cd ~/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/
composer update

The trick is also mentioned in an issue on the plugin's GitHub repository.