pxp-lang / pxp

A suite of high-performance tools for PHP developers – includes a code formatter, static analyser, language server and superset language.
https://pxplang.org
Other
784 stars 0 forks source link

StdIndexes: Add in stubs and generate crate #40

Closed ryangjchandler closed 9 months ago

ryangjchandler commented 9 months ago

Closes #36.

The idea here is that we generate indexes for all of the PHP versions that PXP supports. This means that we don't need to reindex all of those stubs each time we index a project.

The static analyser and other non-LSP tools will only support the same versions of PHP that are officially supported upon release, so likely PHP 8.2+ but the language server will work with PHP 8.0+.

If anybody is still working on PHP 7.4 projects, they either need to upgrade or use a different language server (sorry, not sorry).

The stubs that we use are the same ones that PHPStan uses, so they should be pretty accurate.