generator
generator copied to clipboard
Generate stubs from any PHP code for IDE completion and static analysis.
Based on the idea that was voiced in https://github.com/szepeviktor/phpstan-wordpress/issues/99#issuecomment-1112996660 It should be safe to not include private constants/properties/methods of classes. And if the class is final, protected ones can be...
The generator uses [`ContainerInterface`](https://github.com/php-fig/container/blob/master/src/ContainerInterface.php) and it excludes loaded interfaces https://github.com/php-stubs/generator/blob/master/src/NodeVisitor.php#L352 so it won't be included in the output. Added in https://github.com/php-stubs/generator/commit/7cbedd8957b7e82eb6e2df9b096d31b760199773 @johnbillion Do you see a solution/work-around?
https://github.com/php-stubs/generator/blob/master/src/StubsGenerator.php#L127
💣 Do not do this. Install nikic/php-parser v4.11.0!
Moved here from README.
### Changes - Loosen parent check from `Class_` to `ClassLike` to include `Traits`, `Interfaces`, and `Enums`. - Remove protected nodes, regardless if the class is final or not. - Adjust...
The following dependencies have new major versions available (^5.0 and ^7.0 respectively), but they cannot be updated because they're locked by this package. ```json "require": { "nikic/php-parser": "^4.10", "symfony/console": "^5.1...
Feature Request: Automate Stub File Generation for Large Codebase with Splitting into Multiple Files
Currently, the stub generator creates a single file for the entire codebase, which becomes inefficient for larger projects. I request a feature that automatically splits the stub generation into multiple...