felixfbecker / php-language-server

PHP Implementation of the VS Code Language Server Protocol 🆚↔🖥
ISC License
1.16k stars 185 forks source link

PHP8 Not compatible ? #809

Open theCrazylegs opened 3 years ago

theCrazylegs commented 3 years ago

Everything is in the title

ErrorException: Method ReflectionParameter::getClass() is deprecated in C:\Users\xxxxx\.vscode\extensions\felixfbecker.php-intellisense-2.3.14\vendor\phpdocumentor\reflection-docblock\src\DocBlock\StandardTagFactory.php:241 Stack trace: #0 C:\Users\xxxxx\.vscode\extensions\felixfbecker.php-intellisense-2.3.14\vendor\phpdocumentor\reflection-docblock\src\DocBlock\StandardTagFactory.php(241): {closure}(8192, 'Method Reflecti...', 'C:\\Users\\xxxxx\\...', 241) #1 C:\Users\xxxxx\.vscode\extensions\felixfbecker.php-intellisense-2.3.14\vendor\phpdocumentor\reflection-docblock\src\DocBlock\StandardTagFactory.php(198): phpDocumentor\Reflection\DocBlock\StandardTagFactory->getArgumentsForParametersFromWiring(Array, Array) #2 C:\Users\xxxxx\.vscode\extensions\felixfbecker.php-intellisense-2.3.14\vendor\phpdocumentor\reflection-docblock\src\DocBlock\StandardTagFactory.php(122): phpDocumentor\Reflection\DocBlock\StandardTagFactory->createTag('ClientCapabilit...', 'param', Object(phpDocumentor\Refl...

GwynethLlewelyn commented 3 years ago

I'd guess that's because this project hasn't been updated since 2018, but PHP 8.0 was launched only on November 26, 2020. Therefore, it ought not to be able to parse any recent PHP version...

rk0cc commented 3 years ago

I'd guess that's because this project hasn't been updated since 2018, but PHP 8.0 was launched only on November 26, 2020. Therefore, it ought not to be able to parse any recent PHP version...

So, does any forked repos that supported already?

GwynethLlewelyn commented 3 years ago

So, does any forked repos that supported already?

Excellent question, I wish I knew I had an answer. But I guess that everybody is moving to Intelephense anyway. It's freemium software, but a lifetime license costs only €12, so there is probably not much of an incentive to keep developing something from scratch and keep it up-to-date...

Ben-CA commented 2 years ago

It's unfortunate this software hasn't been updated to support PHP 8.0

GwynethLlewelyn commented 2 years ago

Alas, you're right, and the probability of it ever getting updated again is tiny.

rk0cc commented 2 years ago

I just found zobo's forked repos maybe worked up to PHP 8.1 (in GitHub action, officially said 'work in progress') when this comment posted and changed the minimum PHP version to 7.4.

It's also provides it's own Code extension but required install from .vsix file manually and published already.