eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.08k stars 444 forks source link

Update PHP stubs #3394

Closed AJenbo closed 1 week ago

AJenbo commented 1 month ago

Rather then maintain our own stubs this PR switches to a common source. For this I have picked JetBrains/phpstorm-stubs, they ware well maintained by multiple parties and used by numerous projects (like PHPStan and others).

This takes the stubs from PHP 5.6 to PHP 8.3. It also adds more extensions, additional context (some of this is not yet picked up by our parser) and corrections.

codelitephp/resources/cc/superglobals.php is kept for now since CodeLite does not yet understand the @xglobal hint used in phpstorm-stubs/superglobals/_superglobals.php.