File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -32,4 +32,5 @@ parameters:
3232 - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-stubs.php
3333 - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php
3434 - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php
35+ - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-tools.php
3536```
Original file line number Diff line number Diff line change 1+ <?php
2+ declare ( strict_types=1 );
3+
4+ return \StubsGenerator \Finder::create ()
5+ ->in ( 'source/vendor/wp-cli/php-cli-tools/lib ' )
6+ ->sortByName ();
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ HEADER=$'/**\n * Generated stub declarations for WP-CLI\n * @see https://wp-cli.
55FILE=" wp-cli-stubs.php"
66FILE_PKGS=" wp-cli-commands-stubs.php"
77FILE_I18N=" wp-cli-i18n-stubs.php"
8+ FILE_TOOLS=" wp-cli-tools-stubs.php"
89
910set -e
1011
5354 --interfaces \
5455 --traits \
5556 --out=" $FILE_I18N "
57+
58+ # wp-cli/php-cli-tools
59+ " $( dirname " $0 " ) /vendor/bin/generate-stubs" \
60+ --include-inaccessible-class-nodes \
61+ --force \
62+ --finder=finder-tools.php \
63+ --header=" $HEADER " \
64+ --functions \
65+ --classes \
66+ --interfaces \
67+ --traits \
68+ --out=" $FILE_TOOLS "
You can’t perform that action at this time.
0 commit comments