Well, PHP 8.0 is out since yesterday. I would love to see Intelephense support it. You can find the list of new features on this page: https://www.php.net/releases/8.0/.
Maybe we should split this issue up in the different features provided by PHP 8.0?
At any rate, thank you so much for this awesome extension of yours that allow me to tinker with my PHP projects!
https://github.com/bmewburn/vscode-intelephense/milestone/26 in case you didn't notice.
Oops, yup, I did not see the milestone. I have searched for an issue though. Thank you for pointing it out :) I guess I will close this issue down then.
Premium license user here.
Any idea on the milestone progress? There seems to be no commits/activity since August...
Using PHP 8 new features (named arguments, null safe operator, argument promotion) generates errors and this also breaks formatting (prettier).
I guess commit in this repo doesn't really mean something since intelephense (the language server) itself is not open-sourced here.
It's being actively worked on. Should be out soon.
thank you, i just installed and buy and match expression and nullsafe operator mark as error.
thank you, i just installed and buy and match expression and nullsafe operator mark as error.
I think there's no new release yet for PHP8. The latest is still on Aug 16th (v1.5.4). I tried to build and install on VSCode the master of this branch (as "1.6.0") but the error on nullsafe operator still happens, but as they said above I think we need a release for the language server.
FYI ( @bmewburn ) if this can help the code $product->pivot->options?->channel_id generates Undefined constant 'App\Console\channel_id'.intelephense(1011) and the code if ($channelId = $product->pivot->options?->channel_id) { generates Array or string offset access with curly braces deprecated in PHP 7.4. Targeting PHP 8.0.0..
Most helpful comment
It's being actively worked on. Should be out soon.