phpdoc-parser
phpdoc-parser copied to clipboard
Documentation parser powering developer.wordpress.org
When a hook is used multiple times, the wrong docblock will get associated with it if the usage with just the `This hook is documented in file.php` type docblock is...
Deprecated functions used to/are supposed to be marked with a "This .. is deprecated since ..., use ... instead" banner near the top of the documentation page. This currently does...
``` public function cancel_action( $action_id ) { /** @var \wpdb $wpdb */ global $wpdb; $updated = $wpdb->update( $wpdb->actionscheduler_actions, array( 'status' => self::STATUS_CANCELED ), array( 'action_id' => $action_id ), array( '%s'...
It'd be nice to optionally be able to remove previously parsed resources that were not included as part of a full re-parsing. Remove may mean delete, but more likely assignment...
Tangentially related to #14. I'd like to have the option of generating a bunch of static .html files (like phpDocumentor or ApiGen would do) from the .json output. This could...
`\\WP_Parser\Importer::import_file()` provides the `wp_parser_pre_import_file` filter to skip importing a particular file. It would improve efficiency if there were a similar filter earlier in the pipeline, e.g., in `\\WP_Parser\get_wp_files()`. For example,...
For example, ``` class My_Class { public const C1 = 'value'; protected const C2 = 'another value'; ... } ``` Trying the parse the above results in an error like:...
Hello, I'm working on a WP Syntex project which is the company behind the WordPress plugins Polylang. We'd like to provide a full docs of our products (free and pro)...
Before commit e482b28d6cb3761f0a2d69a2ea97fd19a0b22e7a the PHPUnit tests used to work with PHPUnit 4. Now I get this error for half of the unit tests. ``` 1) WP_Parser\Tests\Export_Docblocks::test_linebreaks_removed Undefined property: PhpParser\Node\Stmt\Function_::$uses /app/public/wp-content/plugins/phpdoc-parser/lib/class-file-reflector.php:174...
While parsing the source for a plugin, I came across a case where the DocBlock for a hook isn't parsed correctly. The code contains the following: ``` /** * Filters...