/phpstorm-stubs

PHP runtime & extensions header files for PhpStorm

Primary LanguagePHP

phpstorm-stubs

official JetBrains project Build Status License Total Downloads

STUBS are normal, syntactically correct PHP files that contain function & class signatures, constant definitions, etc. for all built in PHP stuff and most standard extensions. Stubs need to include complete PHPDOC, especially proper @return annotations

IDE needs them for completion, code inspection, type inference, doc popups, etc. Quality of most of this services depend on quality of the stubs (basically their PHPDOC @annotations).

Relevant open issues

Contribution process

Contribution process

Updating the IDE

TBD: Have a full copy of .git repo within IDE and add it as an external library "PHP Runtime" to the project. It should then be easilly updatable both way via normal git methods.

How to run tests

  1. Execute composer install
  2. Execute docker-compose -f tests/docker-compose.yml run php > tests/stub.json
  3. Run the test phpunit tests/TestStubs.php

License

Apache 2